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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ignore this post
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#4
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
Find


Messages In This Thread
Ignore this post - by Liamgraves3 - 04-02-2012, 04:35 PM
RE: How do i make teleporting naked guys? - by JMFStorm - 04-02-2012, 05:14 PM
RE: Ignore this post - by SplitHeadProduction - 04-03-2012, 10:31 AM
RE: Ignore this post - by palistov - 04-03-2012, 07:05 PM
RE: Ignore this post - by flamez3 - 04-03-2012, 11:48 PM
RE: Ignore this post - by Liamgraves3 - 04-04-2012, 01:12 PM
RE: Ignore this post - by flamez3 - 04-04-2012, 02:41 PM
RE: Ignore this post - by Dutton - 04-24-2012, 09:57 AM



Users browsing this thread: 1 Guest(s)