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
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


Messages In This Thread
Making a note and a key script - by putty992 - 06-11-2012, 04:06 PM
RE: Making a note and a key script - by MaZiCUT - 06-11-2012, 04:22 PM
RE: Making a note and a key script - by putty992 - 06-11-2012, 08:31 PM
RE: Making a note and a key script - by Datguy5 - 06-11-2012, 08:36 PM
RE: Making a note and a key script - by Datguy5 - 06-11-2012, 08:42 PM
RE: Making a note and a key script - by putty992 - 06-11-2012, 08:58 PM



Users browsing this thread: 1 Guest(s)