Jump to content
Sign in to follow this  
emcnally

Mortar and moving them?

Recommended Posts

Hi all,

In a USMC Rifle company they have a 60mm mortar section. Since there isnt one I want to use the 81mm. What I want to be able to do is have the gunner packup the mortar on his back and carry it when he moves to his next WP then redeploy it. I know I can use the attachto command But the soldier is in another lower command group. I'm using high Command with the Co cdr as the player so I need a script I can use that will detect when the mortar is told to move and pack it up then redeploy it when he gets to his stop WP. Anyone got any ideas? So far I got this but I cant seem to make anything happen when I give the unit a move order.

_unit = _this select 0

_mortar = _this select 1

#start

if (unitReady _unit) then goto "deploy" else goto "carry"

goto "start"

#deploy

detach _mortar

_unit moveingunner _mortar

_unit sidechat "deploy working"

goto "start"

exit

#carry

_unit leavevehicle _mortar

_mortar attachTo [_unit,[0,-1,1]]

_unit sidechat "carry working"

goto "start"

exit

Edited by emcnally

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  

×