Page 1 of 1
How do you tell how many passenegr slots are in a vehecle?
Posted: Mon Nov 24, 2003 12:57 am
by small_sumo
How do you tell how many passenegr slots are in a vehecle? I can open the skd in milk or lightray to see the names of the bones.
Thanks
Posted: Mon Nov 24, 2003 6:48 pm
by jv_map
Well no idea but this little script will tell you

... just put the vehicle in a map and give it targetname 'vehicle'.
Code: Select all
main:
level waittill spawn
wait 5
thread findpassengerslots
end
findpassengerslots:
local.num = 0
while(1)
{
local.guy = spawn models/human/german_wehrmact_nco.tik targetname removeme
local.slotid = $vehicle QueryFreePassengerSlot
if(local.slotid == NIL || local.slotid == NULL)
break
$vehicle AttachPassengerSlot local.slotid local.guy
local.num++
}
iprintln $vehicle.model " has " local.num " passenger slots"
for(local.i = 1; local.i <= $removeme.size; local.i++)
$removeme[local.i] commanddelay 0.05 remove
end
Posted: Tue Nov 25, 2003 12:52 am
by small_sumo
Oh thats great, I am thinking of gluesing ai and mgs to different vehecles and putting them in mp levels, do you like my chances?
We will see what happens, thanks so much JV.