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
Changing Entities
lllDash Offline
Member

Posts: 108
Threads: 12
Joined: Apr 2012
Reputation: 3
#4
RE: Changing Entities

{

AddEntityCollideCallback("servant_brute_1", "BruteCollide", "Rawr", true, 1);
}

void Rawr(string &in asParent, string &in asChild, int alState)
{
SetEnemyDisableTriggers("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 5.0f, "");
}



I've never used "SetEnemyDisableTriggers" before but theoretically it should work according to http://wiki.frictionalgames.com/hpl2/amn..._functions

and also to make him roar, you'll need to give him an animation for when he reaches the pathnode. read this: (also found in http://wiki.frictionalgames.com/hpl2/amn..._functions)

AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);

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


(This post was last modified: 06-08-2012, 11:10 PM by lllDash.)
06-08-2012, 11:07 PM
Find


Messages In This Thread
Changing Entities - by MaZiCUT - 06-08-2012, 05:17 PM
RE: Changing Entities - by Your Computer - 06-08-2012, 06:27 PM
RE: Changing Entities - by MaZiCUT - 06-08-2012, 06:55 PM
RE: Changing Entities - by lllDash - 06-08-2012, 11:07 PM



Users browsing this thread: 1 Guest(s)