Method not found??
Posted: Mon Apr 28, 2008 3:59 pm
I'm trying to make a pawn to play a sound file
When I enter the FOV of the pawn in the game, Every time the console gives the same error:
As far as I know, the "0" stand or the line number in the order. I think I'm using the function correctly, so where's the problem? I have the latest version of Reality Factory.
Code: Select all
FOUNDTARGETSOUND [Taunts\\Soldier_FoundTarget.wav]
.
.
.
// found a target to attack
FoundTarget[ ()
{
PlaySound(FOUNDTARGETSOUND);
DelTimerOrder(1); // get rid of alert timer
LowLevel(RUNFUNC); // attack functions are low level
} ]
Code: Select all
Scripts\GenericSoldier.s:FoundTarget:0-Method PlaySound not found*