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
Monster walking paths
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Monster walking paths

Don't worry, I'm here to help you. Smile

On the side bar in the editor there is a button called "Areas" and there will be a drop box once you click it. Towards the bottom if it is "PathNode". Click it and place it next to your monster that shows what way it goes. So make a path with them, about a meter apart from each PathNode. Now you have to script.

The script line looks like this:
AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);

For example, if my monster is called "Monster01" and the PathNode is called "PathNodeArea_1" and I want the monster to wait between nodes for 5 seconds I would do:

AddEnemyPatrolNode("Monster01", "PathNodeArea_1", 5, "");
AddEnemyPatrolNode("Monster01", "PathNodeArea_2", 5, "");

This would make the monster wait 5 seconds, then go to path node 1, then wait 5 seconds at path node 1 and then move on to path node 2. By the way, the last slot of the script line ("string& asAnimation") can be left blank.

Congratulations, you were just helped by a 13-year-old. Big Grin

(This post was last modified: 04-23-2011, 02:26 AM by Kyle.)
04-23-2011, 02:24 AM
Find


Messages In This Thread
Monster walking paths - by Shoop - 04-23-2011, 02:05 AM
RE: Monster walking paths - by Kyle - 04-23-2011, 02:24 AM
RE: Monster walking paths - by Shoop - 04-23-2011, 02:33 AM
RE: Monster walking paths - by Kyle - 04-23-2011, 02:47 AM
RE: Monster walking paths - by Shoop - 04-23-2011, 02:50 AM
RE: Monster walking paths - by Kyle - 04-23-2011, 02:51 AM
RE: Monster walking paths - by Shoop - 04-23-2011, 02:53 AM
RE: Monster walking paths - by Kyle - 04-23-2011, 03:55 AM
RE: Monster walking paths - by Hunter of Shadows - 04-23-2011, 02:37 AM
RE: Monster walking paths - by Shoop - 04-23-2011, 02:39 AM
RE: Monster walking paths - by palistov - 04-23-2011, 03:25 AM
RE: Monster walking paths - by laser50 - 04-23-2011, 10:24 AM
RE: Monster walking paths - by MrBigzy - 04-23-2011, 02:47 PM



Users browsing this thread: 1 Guest(s)