Frictional Games Forum (read-only)
timer script - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: timer script (/thread-6956.html)



timer script - larslu - 03-19-2011

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


RE: timer script - Viperdream - 03-19-2011

http://wiki.frictionalgames.com/hpl2/tutorials/script/entihscript_beginner


RE: timer script - larslu - 03-19-2011

(03-19-2011, 06:07 PM)Viperdream Wrote: http://wiki.frictionalgames.com/hpl2/tutorials/script/entihscript_beginner

Now I know how to make a timer, but still don't know how to make the path of the monster to activate.


RE: timer script - Linus Ă…gren - 03-19-2011

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, "");


RE: timer script - larslu - 03-20-2011

(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?


RE: timer script - Viperdream - 03-20-2011

Seconds

5.5f is 5.5seconds