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
nickTs Offline
Junior Member

Posts: 12
Threads: 3
Joined: Sep 2010
Reputation: 0
#10
RE: Scripts won't work

(09-17-2010, 01:08 PM)Deruu Wrote: 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

I took the second node out because I figured it was unnecessary since I only wanted him to walk a straight line.

Anyway, I did like you said and added the second node, dropped some path nodes in, and I made sure he would hit the disappear area before reaching the second node by stretching it and moving it further away from the second node. With all that and changing the pause time from 4 to 0, he still moves to node1, pauses, and paces. I don't understand why this isn't working right when it seemed to work fine in your example map.
09-18-2010, 12:13 PM
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)