Frictional Games Forum (read-only)
Activate grunts by key pickup! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Activate grunts by key pickup! (/thread-12403.html)



Activate grunts by key pickup! - Bramme - 01-06-2012

What is the script for activating a grunt when i pick up a key?


RE: Activate grunts by key pickup! - SilentStriker - 01-06-2012

(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=ZYbTxyjhGlg&feature=plcp&context=C3b7bdf6UDOEgsToPDskJ0svGSXTGaLyyGduYLNd9b

Here's the script Smile

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

void spawn_func(string &in item)
{
SetEntityActive("Nameofthemonster", true);
}



RE: Activate grunts by key pickup! - Bramme - 01-06-2012

Thanks mate i am so happyBig Grin


RE: Activate grunts by key pickup! - SilentStriker - 01-06-2012

(01-06-2012, 09:02 PM)Bramme Wrote: Thanks mate i am so happyBig Grin
No problem dude Smile