Frictional Games Forum (read-only)

Full Version: Activate grunts by key pickup!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Smile http://www.youtube.com/watch?v=ZYbTxyjhG...yGduYLNd9b

Here's the script Smile

void OnStart()
{
SetEntityPlayerInteractCallback("NAMEOFTHEKEY", "spawn_func", true);
}

void spawn_func(string &in item)
{
SetEntityActive("Nameofthemonster", true);
}
Thanks mate i am so happyBig Grin
(01-06-2012, 09:02 PM)Bramme Wrote: [ -> ]Thanks mate i am so happyBig Grin
No problem dude Smile