JMFStorm
Member
Posts: 205
Threads: 8
Joined: Aug 2011
Reputation:
28
|
RE: How do i make teleporting naked guys?
It cannot be good custom story if there's a telepoting naked guy in there. But anyways...
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);
}
(This post was last modified: 04-02-2012, 05:16 PM by JMFStorm.)
|
|
04-02-2012, 05:14 PM |
|