MaZiCUT
Senior Member
Posts: 536
Threads: 31
Joined: Jun 2012
Reputation:
17
|
RE: How to do so Grunts poofs
Teleporting naked guy:
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);
}
And for the grunt poof you'll have to set him active/inactive in a script, and if you mean by just poof and never come back just make it a hallucination.
Hi.
(This post was last modified: 06-12-2012, 02:18 PM by MaZiCUT.)
|
|
06-12-2012, 02:18 PM |
|