OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CODY2622 on 10 Apr 2003, 00:14:43
-
ok guys. I found this mgcarry script over at editors depot and I cant seem to get it to move around a vehice. It just stays in the same spot on the car or heli. Can someone please help?
-
It may be a outdated script, if you would post a link to the script download, or paste the script here, then maybe we could help you.
-
Same problem here and here is the script i am using ps not mine
_carrier = _this select 0
_cargo = _this select 1
_height = _this select 2
endCargoSession = false
goto debug
#carrier
_x = (getPos _carrier) select 0
_y = (getPos _carrier) select 1
_z = ((getPos _carrier) select 2)+_height
_cargo setPos [_x, _y, _z ]
_cargo setDir (getDir _carrier)
~.01
? (!endCargoSession) : goto "carrier"
@ endcargosession
_cargo setpos [_x,(_y)-1.5,0]
exit