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
Script Help Grunt Animations
Dutton Offline
Member

Posts: 121
Threads: 3
Joined: Apr 2012
Reputation: 2
#1
Grunt Animations

So today i got a bit curious after reading a post on the forums, and decided to make a small test map. containing a corridor with a metal table and a resized cabinet.

Now what is supposed to happend is that i pickup a key and a grunt will spawn with disabled triggers. and it should play an animation when reaching the first pathnode, which was "run.anm".

Here is my hps file:



void OnStart()
{
SetEntityCallbackFunc("activategrunt", "startgruntrun");
}

void startgruntrun(string &in asEntity, string &in type)
{
SetEnemyDisableTriggers("servant_grunt_1", true);
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "run.anm");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "notice1.anm");
}

The animations are included at the end of the pathnodes as described on the tutorial page "Setting up a monster".

But the animations won't play, how come?

[Image: 15isy6C]
04-03-2012, 10:51 AM
Find


Messages In This Thread
Grunt Animations - by Dutton - 04-03-2012, 10:51 AM
RE: Grunt Animations - by zombiehacker595 - 04-03-2012, 12:23 PM
RE: Grunt Animations - by Dutton - 04-03-2012, 04:33 PM
RE: Grunt Animations - by RedMser - 04-03-2012, 06:43 PM
RE: Grunt Animations - by Obliviator27 - 04-03-2012, 07:46 PM
RE: Grunt Animations - by Statyk - 04-03-2012, 08:37 PM
RE: Grunt Animations - by Your Computer - 04-03-2012, 08:44 PM
RE: Grunt Animations - by Dutton - 04-04-2012, 11:38 AM



Users browsing this thread: 1 Guest(s)