elias190
Junior Member
Posts: 2
Threads: 1
Joined: Jun 2012
Reputation:
0
|
RE: Teleporting naked guys HELP!!
(06-11-2012, 06:22 PM)CrazyArts Wrote: I can't refuse this... ugh i'm a good person.
TYVM!
void OnStart ()
{
SetEntityPlayerInteractCallback("item", TeleportNakedGuyFunc, true); //name the "item" with the name of your item in the map
}
void TeleportNakedGuyFunc (string &in asEntity)
{
SetEntityActive ("NakedGuy", true); // name the "NakedGuy" as the ragdoll corpse entity in the map
AddPropForce(NakedGuy"", 0, 0, 0, "world"); // if you want it to fly in some direction. Try different values over the zero's.
PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, true);
}
Just don't go around posting this custom story here.. this is what you have to do in return that i've helped you.
|
|
06-11-2012, 06:41 PM |
|