Jump to content
Sign in to follow this  
gitrinec

cant get units to spawn in a certain height

Recommended Posts

I can get units to spawn with chutes and have them position apart but I cant get them to fly in any height it works fine in ofp but not arma. In ofp I used camcreate to create the parachutes but in arma they dont show up so I switched to createvehicle.

_chute = _this select 0

_posx = getpos _chute select 0

_posy = getpos _chute select 1

chute1= "ParachuteEast" createvehicle [_posx + 15,_posy, 300]

chute2="ParachuteEast" createvehicle [_posx + 30,_posy, 300]

chute3="ParachuteEast" createvehicle [_posx + 45,_posy, 300]

chute4="ParachuteEast" createvehicle [_posx + 60,_posy, 300]

chute5="ParachuteEast" CreateVehicle [_posx + 75,_posy, 300]

chute6="ParachuteEast" CreateVehicle [_posx + 90,_posy, 300]

chute7="ParachuteEast" CreateVehicle [_posx + 105,_posy, 300]

chute8="ParachuteEast" CreateVehicle [_posx + 120,_posy, 300]

chute9="ParachuteEast" CreateVehicle [_posx + 135,_posy, 300]

chute10="ParachuteEast" CreateVehicle [_posx + 150,_posy, 300]

chute11="ParachuteEast" CreateVehicle [_posx + 165,_posy, 300]

chute12="ParachuteEast" CreateVehicle [_posx + 180,_posy, 300]

chute13="ParachuteEast" CreateVehicle [_posx + 195,_posy, 300]

chute14="ParachuteEast" CreateVehicle [_posx + 210,_posy, 300]

chute15="ParachuteEast" CreateVehicle [_posx + 225,_posy, 300]

chute16="ParachuteEast" CreateVehicle [_posx + 240,_posy, 300]

chute17="ParachuteEast" CreateVehicle[_posx + 255,_posy, 300]

chute18="ParachuteEast" CreateVehicle [_posx + 270,_posy, 300]

"SquadleaderW" createunit[getpos Chute1,egrp1,"eldr1=this",0.9,"Captain"];eldr1 moveindriver chute1

"TeamLeaderW" createunit[getpos Chute2,egrp1,"e1=this",0.9,"CORPORA"];e1 moveindriver chute2

"SoldierWG" createunit[getpos Chute3,egrp1,"e2=this",0.9,"Sergeant"];e2 moveindriver chute3

"SoldierWAR" createunit[getpos Chute4,egrp1,"e3=this",0.9,"Sergeant"];e3 moveindriver chute4

"SoldierWAT" createunit[getpos Chute5,egrp1,"e4=this",0.9,"PRIVATE"];e4 moveindriver chute5

"TeamLeaderW" createunit[getpos Chute6,egrp1,"e5=this",0.9,"CORPORAL"];e5 moveindriver chute6

"SoldierWG" createunit[getpos Chute7,egrp1,"e6=this",0.9,"Sergeant"];e6 moveindriver chute7

"SoldierWAR" createunit[getpos Chute8,egrp1,"e7=this",0.9,"CORPORAL"];e7 moveindriver chute8

"SoldierWSniper" createunit[getpos Chute9,egrp1,"e8=this",0.9,"Sergeant"];e8 moveindriver chute9

"SquadleaderW" createunit[getpos Chute10,egrp2,"e11=this",0.9,"Captain"];e11 moveindriver chute10

"SoldierWMG" createunit[getpos Chute11,egrp2,"e12=this",0.9,"CORPORAL"];e12 moveindriver chute11

"SoldierWB" createunit[getpos Chute12,egrp2,"e13=this",0.9,"Sergeant"];e13 moveindriver chute12

"SoldierWB" createunit[getpos Chute13,egrp2,"e14=this",0.9,"Sergeant"];e14 moveindriver chute13

"SoldierWB" createunit[getpos Chute14,egrp2,"e15=this",0.9,"CORPORAL"];e15 moveindriver chute14

"SoldierWB" createunit[getpos Chute15,egrp2,"e16=this",0.9,"Sergeant"];e16 moveindriver chute15

"SoldierWAT" createunit[getpos Chute16,egrp2,"e17=this",0.9,"CORPORAL"];e17 moveindriver chute16

"SoldierWSniper" createunit[getpos Chute17,egrp2,"e18=this",0.9,"Sergeant"];e18 moveindriver chute17

"SoldierWAR" createunit[getpos Chute18,egrp2,"e19=this",0.9,"Sergeant"];e19 moveindriver chute18

Share this post


Link to post
Share on other sites

I'm not 100% if this is what you're after.

I created my team not as MEN, but AIR then PARACHUTE.  They seem to default to saboteurs so I used the removeallweapons this; and add weapons...; commands to give them the desired kit.

This started the game with my team and I chuting in.  For the height I entered the following into each man's INITIALIZATION field:

this setpos [(getpos this select 0), (getpos this select 1), 120]  

where 120 is the height. Change that value for your desired chute/spawn height.

Hope this helps.

Share this post


Link to post
Share on other sites

well how the script worked in ofp was that I create a group logic named chutelogic (location for unit to spawn at) then I create a trigger that has [chutelogic] exec "airdrop.sqs" the trigger has a 30 second delay then it executes. then the chutes are created with the

chute1= "ParachuteEast" createvehicle [_posx + 15,_posy, 300]

part of the script they are positioned 15 meters apart the 300 is the height that they are suppose to spawn at. The other lines ex

"SquadleaderW" createunit[getpos Chute1,egrp1,"eldr1=this",0.9,"Captain"];eldr1 moveindriver chute1

spawn a unit at the position of the chute and moves the unit into the parachute. In ofp this works great however in arma they just spawn on the ground connected to parachutes. The height is not working

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×