Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
timer script
larslu Offline
Junior Member

Posts: 30
Threads: 15
Joined: Mar 2011
Reputation: 0
#1
timer script

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, 05:45 PM
Find
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#2
RE: timer script

http://wiki.frictionalgames.com/hpl2/tut...t_beginner

03-19-2011, 06:07 PM
Find
larslu Offline
Junior Member

Posts: 30
Threads: 15
Joined: Mar 2011
Reputation: 0
#3
RE: timer script

(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.
03-19-2011, 06:15 PM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#4
RE: timer script

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

Creator of The Dark Treasure.
03-19-2011, 06:18 PM
Website Find
larslu Offline
Junior Member

Posts: 30
Threads: 15
Joined: Mar 2011
Reputation: 0
#5
RE: timer script

(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?
03-20-2011, 08:44 PM
Find
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#6
RE: timer script

Seconds

5.5f is 5.5seconds

03-20-2011, 11:39 PM
Find




Users browsing this thread: 1 Guest(s)