The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Enemy animation doesn't play
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Enemy animation doesn't play

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?

(This post was last modified: 06-23-2012, 02:50 AM by Damascus.)
06-23-2012, 02:49 AM
Find


Messages In This Thread
Enemy animation doesn't play - by Damascus - 06-23-2012, 02:49 AM
RE: Enemy animation doesn't play - by Rownbear - 06-23-2012, 04:36 AM



Users browsing this thread: 1 Guest(s)