MaZiCUT
Senior Member
Posts: 536
Threads: 31
Joined: Jun 2012
Reputation:
17
|
RE: Teleporting naked guys HELP!!
I can't refuse this... ugh i'm a good person.
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.
Hi.
(This post was last modified: 06-11-2012, 06:23 PM by MaZiCUT.)
|
|
06-11-2012, 06:22 PM |
|