32 lines
732 B
Text
32 lines
732 B
Text
|
//-------------------------------------------------------------------------------
|
||
|
// Test_VehicleDrive.Scr
|
||
|
//
|
||
|
// - Example code used to have the player drive a tank.
|
||
|
// (as in t3l2)
|
||
|
//
|
||
|
//
|
||
|
// NOTES:
|
||
|
// In the editor, be sure to have the player vehicle target the appropriate
|
||
|
// collision entity.
|
||
|
//-------------------------------------------------------------------------------
|
||
|
|
||
|
level waittill prespawn
|
||
|
level waittill spawn
|
||
|
|
||
|
main:
|
||
|
$playertank.collisionent = $playertank.target
|
||
|
|
||
|
level.playertanktarget = $player
|
||
|
|
||
|
$player holster
|
||
|
$player takeall
|
||
|
$player physics_off
|
||
|
|
||
|
$playertank waitthread global/vehicles_thinkers.scr::players_tank $playertank_trigger
|
||
|
$playertank vehiclespeed 200
|
||
|
|
||
|
|
||
|
|
||
|
end
|
||
|
|