Halftrack gun
Moderator: Moderators
Halftrack gun
does anybody know a good way to make a player in SP use a halftrack mg? i tried attachturretslot 0, but it said it was locked. so i unlocked it and tried it again. i could use the gun, but couldnt really see it, and my screen bobbed up and down, as if you lean left, over and over... does anybody know a good way to do it?
-
Desert Eagle
- Captain
- Posts: 237
- Joined: Mon Jan 13, 2003 1:05 am
- Location: Mapping Bunker
- Contact:
look at the global/vehicle_thinkers.scr under jeep controler the SDK uses a halftrack and this thread in it's tutorial about rideing a vehicle . Here is part of it .
local.vturretent = self queryturretslotentity 0
local.vturretent unlock
self attachturretslot 0 $player // Attach the player to the jeep
$player perferredweapon ".30cal Machine Gun"
local.vturretent lock
-
Desert Eagle
- Captain
- Posts: 237
- Joined: Mon Jan 13, 2003 1:05 am
- Location: Mapping Bunker
- Contact:
Sure you can hide players, that is what I did in my TOW map, during the victory movie, frozen em hid em, and made them not solid, as not to interfere with movie animations.
part of my script used:
//-------------------------------------------------------
win_game_allies:
//-------------------------------------------------------
drawhud 0 // clear the screen
//stop the players
$player nodamage
$player hide
$player notsolid
freezeplayer
If you just use $player hide, players can still run around on map. Not sure if it would work in SP though.

part of my script used:
//-------------------------------------------------------
win_game_allies:
//-------------------------------------------------------
drawhud 0 // clear the screen
//stop the players
$player nodamage
$player hide
$player notsolid
freezeplayer
If you just use $player hide, players can still run around on map. Not sure if it would work in SP though.

Desert-Eagle
....The Eagle Has Landed...
....The Eagle Has Landed...
OK, Ive got an idea for this to work... First of all i need some info...
How do you properly use the doUse function? as in, how do you force the player to use something? think of it as some invisible force automatically pushing the use key on ur keyboard for you. i want the player to forcibly 'use' an object.
How do you properly use the doUse function? as in, how do you force the player to use something? think of it as some invisible force automatically pushing the use key on ur keyboard for you. i want the player to forcibly 'use' an object.
