06-23-2012, 02:49 AM
void AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);
Adds a patrol node to the enemy's path.
asName - internal name of the enemy
asNodeName - path node
afWaitTime - time in seconds that the enemy waits at the path node before continuing
asAnimation - the animation the enemy uses when reaching the path node
If I'm looking at this correctly, there's no reason my script shouldn't work:
AddEnemyPatrolNode("remnant_1", "PathNodeArea_1", 0.001f, "attack_short1.anm"); //it's a suitor, by the way
Yet, when the enemy reaches the patrol node, it does nothing. Does this function not work?
Adds a patrol node to the enemy's path.
asName - internal name of the enemy
asNodeName - path node
afWaitTime - time in seconds that the enemy waits at the path node before continuing
asAnimation - the animation the enemy uses when reaching the path node
If I'm looking at this correctly, there's no reason my script shouldn't work:
AddEnemyPatrolNode("remnant_1", "PathNodeArea_1", 0.001f, "attack_short1.anm"); //it's a suitor, by the way
Yet, when the enemy reaches the patrol node, it does nothing. Does this function not work?