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
Scripts won't work
Deruu Offline
Junior Member

Posts: 6
Threads: 0
Joined: Sep 2010
Reputation: 0
#9
RE: Scripts won't work

You'll need more than two nodes for the enemy to navigate our map properly. They are not just used for scripting, they are also used to tell the enemies how to get around obstacles(the engine does this automatically, just place a few nodes around the map like I did in my example and it should be fine. Just don't overdo it, if I'm not mistaken enemies do deviate from the nodes a bit to pursue the player).

I see that you have removed the second patrol node from the script, this is what's causing the grunt to stand still once it reaches the node. Re-add the second one, then to prevent the grunt from walking between the two patrol nodes use another area in the path of his second patrol node to make him disappear before he reaches it.

It would be nice to have a callback added when enemies reach a node, *hint hint*@devs Wink
09-17-2010, 01:08 PM
Website Find


Messages In This Thread
Scripts won't work - by nickTs - 09-17-2010, 07:56 AM
RE: Scripts won't work - by Deruu - 09-17-2010, 10:00 AM
RE: Scripts won't work - by MulleDK19 - 09-17-2010, 10:51 AM
RE: Scripts won't work - by nickTs - 09-17-2010, 11:42 AM
RE: Scripts won't work - by jens - 09-17-2010, 11:53 AM
RE: Scripts won't work - by jens - 09-17-2010, 11:56 AM
RE: Scripts won't work - by MulleDK19 - 09-17-2010, 12:02 PM
RE: Scripts won't work - by nickTs - 09-17-2010, 12:14 PM
RE: Scripts won't work - by Deruu - 09-17-2010, 01:08 PM
RE: Scripts won't work - by nickTs - 09-18-2010, 12:13 PM
RE: Scripts won't work - by Deruu - 09-18-2010, 01:37 PM



Users browsing this thread: 1 Guest(s)