Hey Ambit,
Actually YEAH i have seen the video before, and was VERY impressed. So it goes without saying that I took your advie as gospel, and set out to try and create a scanning function to detect players and have them loss health when infront on my player.
That way all I had to do was attach a key and animation to it.. and bingo my character is fighting.
Didn't work.. had problems with the scanning
Easier if I show the code..
/////////////////////////////////////////////////////////////////
ACTION fist_damage_scan { // to scan when in combat, see if you hit anybody
MY_POS.X = PLAYER.X;
MY_POS.Y = PLAYER.Y;
MY_POS.Z = PLAYER.Z;
MY_ANGLE.PAN = CAMERA.PAN;
MY_ANGLE.TILT = CAMERA.TILT;
scan_sector.PAN = 120;
scan_sector.TILT = 120;
scan_sector.Z = 5;
SCAN MY_POS,MY_ANGLE,scan_sector;
}
ACTION fist_attack
{ // This action allows players to hit people.. pretty easy. NOT
MY.fist_damage_scan = 0; // They arn't getting hit to begin with
while(MY._HEALTH > 0) // can't fight if dead - dems da rules 
{
if(fist_damage_scan == _DETECTED)
{ // Hit received?
MY._HEALTH -= 5; // this WILL be a fist_damage variable
fist_damage_scan = 0; // reset the _signal skill
}
WAIT (1);
}
}
/////////////////////////////////////////////////////////////////
It doesn't suprise me, but the problem is with the "fist_damage_scan = 0" It didn't mind the detect.. but I couldn't set it so that it reset.
of cause the "fist_attack()" is in my players main action.
Not sure how to fix this problem. BTW If I am completely off the track with what Ambit was suggesting I will not be offended.
Thanks
Static707