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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Is it possible to kill a grunt ?
Tiero Offline
Member

Posts: 126
Threads: 13
Joined: Mar 2011
Reputation: 11
#4
RE: Is it possible to kill a grunt ?

void OnStart
{
AddEntityCollideCallback("BOX", "Grunt", "KillGrunt", true, 1);
}

void KillGrunt(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("Grunt", true);
}

// Here you throw the box in a grunt, and he "dies". For the beauty you can add sound, a simulated explosion or die and various particles.

[Image: 111.jpg]
(This post was last modified: 12-27-2012, 10:57 AM by Tiero.)
12-27-2012, 10:53 AM
Website Find


Messages In This Thread
Is it possible to kill a grunt ? - by Daemian - 12-27-2012, 04:09 AM
RE: Is it possible to kill a grunt ? - by Tiero - 12-27-2012, 10:53 AM



Users browsing this thread: 1 Guest(s)