Frictional Games Forum (read-only)

Full Version: timer script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I'm new to making custom stories. I want to have a script so when timer is done, a door opens and the monster is following the path that I marked. Can anyone please help me?Angel
(03-19-2011, 06:07 PM)Viperdream Wrote: [ -> ]http://wiki.frictionalgames.com/hpl2/tut...t_beginner

Now I know how to make a timer, but still don't know how to make the path of the monster to activate.
AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);

asName = Name of monster
asNodeName = Name of your node
afWaitTime = Time the monster will wait at the node
asAnimation = Sounds to me like it's what animation he shall make, idk what it is really.

Example:
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
(03-19-2011, 06:18 PM)junkfood2121 Wrote: [ -> ]AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);

asName = Name of monster
asNodeName = Name of your node
afWaitTime = Time the monster will wait at the node
asAnimation = Sounds to me like it's what animation he shall make, idk what it is really.

Example:
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");

one question, is the time in milliseconds, seconds or minutes?
Seconds

5.5f is 5.5seconds