werid bug
Posted: Mon May 08, 2006 10:38 am
well hi,
well this bug has got me baffled i cant get the simplest bot to work
IDLE [Idle]
WALK [Walk]
FOV [360]
SIGHTDIST [100000]
DAMAGEATTRIBUTE [Health]
ROTATESPEED [150]
MOVESPEED [1500]
FIREX [0]
FIREY [0]
FIREZ [0]
Start[()
{
console(bool True);
Setgroup(Allied);
Setattribute(char*Health, int 100);
SetFOV(FOV);
BoxWidth(50);
Targetgroup (Enemy);
neworder (findtarget)
) }
findtarget[()
{
FindTargetorder(float SIGHTDIST, char*foundtarget, char*DAMAGEATTRIBUTE);
} ]
{
foundtarget[()
{
setweapon (char*Erifle);
MoveToTarget(char*WALK, float MOVESPEED);
RotateToTarget(char*IDLE, float ROTATESPEED);
lowlevel(char*Damage&Die);
} ]
{
Damage&Die[()
{
UpdateEnemyVis();
UpdateTarget();
FireProjectile(char*Erifle_B,char*Bip01 R Hand ,float FIREX, float FIREY, float FIREZ, Char*Health);
HighLevel (char*findtarget);
} ]
its supposed to look for an "enemy" and goto it and fire its gun and repeat but it doesnt work as the picture shows????????????!!!!!!!!!!!!!
well this bug has got me baffled i cant get the simplest bot to work
IDLE [Idle]
WALK [Walk]
FOV [360]
SIGHTDIST [100000]
DAMAGEATTRIBUTE [Health]
ROTATESPEED [150]
MOVESPEED [1500]
FIREX [0]
FIREY [0]
FIREZ [0]
Start[()
{
console(bool True);
Setgroup(Allied);
Setattribute(char*Health, int 100);
SetFOV(FOV);
BoxWidth(50);
Targetgroup (Enemy);
neworder (findtarget)
) }
findtarget[()
{
FindTargetorder(float SIGHTDIST, char*foundtarget, char*DAMAGEATTRIBUTE);
} ]
{
foundtarget[()
{
setweapon (char*Erifle);
MoveToTarget(char*WALK, float MOVESPEED);
RotateToTarget(char*IDLE, float ROTATESPEED);
lowlevel(char*Damage&Die);
} ]
{
Damage&Die[()
{
UpdateEnemyVis();
UpdateTarget();
FireProjectile(char*Erifle_B,char*Bip01 R Hand ,float FIREX, float FIREY, float FIREZ, Char*Health);
HighLevel (char*findtarget);
} ]
its supposed to look for an "enemy" and goto it and fire its gun and repeat but it doesnt work as the picture shows????????????!!!!!!!!!!!!!