Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a note and a key script
putty992 Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jun 2012
Reputation: 0
#1
Making a note and a key script

HI! I am going to build a custom story but I'm going to have a note in the start and a locked door with key.
OK heres my question.
Can i use the same lang paper script thing or do i need one for note and one for the key ?


THANKS !!!1!
06-11-2012, 04:06 PM
Find
MaZiCUT Offline
Senior Member

Posts: 536
Threads: 31
Joined: Jun 2012
Reputation: 17
#2
RE: Making a note and a key script

http://www.wiki.frictionalgames.com


if that doesen't help theres plenty of tutorials on youtube too.

Hi.
06-11-2012, 04:22 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: Making a note and a key script

Quick answer.

Yes you can use the same.

But do as CrazyArts say and look at the links Wink
You'll understand it

Trying is the first step to success.
(This post was last modified: 06-11-2012, 05:58 PM by FlawlessHappiness.)
06-11-2012, 05:58 PM
Find
putty992 Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jun 2012
Reputation: 0
#4
RE: Making a note and a key script

I dont get it :S


void OnStart()
{

AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
}


void NailThatSucker(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy", true);
AddPropForce("TeleportedNakedGuy", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy", 0, false);
}

Here's a teleporting naked guy script but then I want a other teleporting naked guy how should I do then?
06-11-2012, 08:31 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#5
RE: Making a note and a key script

Off topic: PLEASE dont make teleporting naked guys or you will get alot of haters :/ (unless you wont release it).
But to make another one just copy that and change the names and add the male corpse entity and the script area and it should work.

06-11-2012, 08:36 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Making a note and a key script

void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_1", "NailThatSucker_1", true, 1);

}

void NailThatSucker_1(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_2", true);
AddPropForce("TeleportedNakedGuy_2", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_2", 0, false);
}

void NailThatSucker(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy", true);
AddPropForce("TeleportedNakedGuy", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy", 0, false);
}


Just change the name of the entities there are more than 1 of.

TeleportedNakedGuy_1, TeleportedNakedGuy_2, TeleportedNakedGuy_3 etc.
But seriously, i recommend not using this. Even though it's for Pewdiepie or your friends or anything else.. I guess we all (even pewdiepie) would like a change instead of all these naked guys.

Trying is the first step to success.
06-11-2012, 08:40 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#7
RE: Making a note and a key script

(06-11-2012, 08:40 PM)beecake Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_1", "NailThatSucker_1", true, 1);

}

void NailThatSucker_1(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_2", true);
AddPropForce("TeleportedNakedGuy_2", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_2", 0, false);
}

void NailThatSucker(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy", true);
AddPropForce("TeleportedNakedGuy", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy", 0, false);
}


Just change the name of the entities there are more than 1 of.

TeleportedNakedGuy_1, TeleportedNakedGuy_2, TeleportedNakedGuy_3 etc.
But seriously, i recommend not using this. Even though it's for Pewdiepie or your friends or anything else.. I guess we all (even pewdiepie) would like a change instead of all these naked guys.
I sometimes make stories for my friends(never release them though)and they dont have amnesia.So atleast my friends arent tired of teleporting naked guys Big Grin

06-11-2012, 08:42 PM
Find
putty992 Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jun 2012
Reputation: 0
#8
RE: Making a note and a key script

Just comming up FATAL ERROR

custom_stories/my map/custom_stories/my map/maps/my map.hps'!
main(20,1) :ERR :A function with the same name and parameters already exist
main(26,1) :ERR :A function with the same name and parameters already exist

main(33,1) :ERR :A function with the same name and parameters already exist

well now its working doesnt get FATAL ERROR but I only see the one ive done first and the second one i dont see nothing happens with him

I dont get FATAL ERROR any longer but i only see the Teleporting naked guy i did first and the second one its dont happens anything with him
(This post was last modified: 06-11-2012, 09:19 PM by putty992.)
06-11-2012, 08:58 PM
Find




Users browsing this thread: 2 Guest(s)