I have yet to figure out how to get my trooper ai to open a door, and then walk through it...
_noOneatall wrote up this script...
Could sumone check it and tell me why it is or isnt working?
symbols
float dist
thing door
thing trooper
message startup
message pulse
message timer
end
code
startup:
MoveToFrame( door, 0 );
SetPulse( 1.0 );
return;
pulse:
if( VectorDist( trooper, door ) < dist )
{
MoveToFrame( door, 1 );
SetTimer( 5.0 );
}
return;
timer:
MoveToFrame( door, 0 );
return;
end
Maybe the lines are in the wrong order or sumthing... Ive tried everything in my knowledge to get it to work, but thats very limited. I know sumone has the right script.
If anyone knows of a single player level with this sort of script, let me know.
------------------
I always drink coffee while I watch radar!
_noOneatall wrote up this script...
Could sumone check it and tell me why it is or isnt working?
symbols
float dist
thing door
thing trooper
message startup
message pulse
message timer
end
code
startup:
MoveToFrame( door, 0 );
SetPulse( 1.0 );
return;
pulse:
if( VectorDist( trooper, door ) < dist )
{
MoveToFrame( door, 1 );
SetTimer( 5.0 );
}
return;
timer:
MoveToFrame( door, 0 );
return;
end
Maybe the lines are in the wrong order or sumthing... Ive tried everything in my knowledge to get it to work, but thats very limited. I know sumone has the right script.
If anyone knows of a single player level with this sort of script, let me know.
------------------
I always drink coffee while I watch radar!