What is the script for activating a grunt when i pick up a key?
(01-06-2012, 07:20 PM)Bramme Wrote: [ -> ]What is the script for activating a grunt when i pick up a key?
Look at this tutorial
http://www.youtube.com/watch?v=ZYbTxyjhG...yGduYLNd9b
Here's the script
void OnStart()
{
SetEntityPlayerInteractCallback("NAMEOFTHEKEY", "spawn_func", true);
}
void spawn_func(string &in item)
{
SetEntityActive("Nameofthemonster", true);
}
Thanks mate i am so happy