Jump to content
Sign in to follow this  
sapper_PMS

Spawn vehicles with crew

Recommended Posts

Hi guys sorry for making new thread but i have try to search for

"create vehicle with crew"

"spawn vehicle with crew"

"spawn tank with crew" etc...

I am making mp mission where players must defend one city against very agressive enemy. I am spawning infantry groups in 40 seconds intervals. I havent got any problem. Two groups spawn at two different marks, script will create waypoint and they will go there.

But when i try to spawn vehicle...

Here is script:

_type = _this select 0
_mark = _this select 1
_time = _this select 2
#loop
_slaGrp = createGroup EAST;
_s1 = "SoldierECrew" createUnit [ getMarkerPos _mark, _slaGrp, " _slaGrp = this; [this] exec 'playerKillsScore60.sqs';", 1, "CORPORAL" ];
_s1 = "SoldierECrew" createUnit [ getMarkerPos _mark, _slaGrp, "[this] exec 'playerKillsScore60.sqs';", 1, "PRIVATE" ];
_tank = _type createVehicle (markerPos _mark)
_s1 moveindriver _tank
_s2 moveingunner _tank
[_tank] exec "playerKillsScore200.sqs"
~1
_s1 assignasgunner _tank
[_s1] ordergetin TRUE
_s2 assignasdriver _tank
[_s2] ordergetin TRUE
_slaGrp addWaypoint [position CityMark,80]
~_time + (random 30)
goto "loop"
exit

Vehicle will be created, crew will be created, but out of vehicle, i have try moveInXXXXX assignasXXXXX but nothing is working...

But crew start moving on waypoint.

Please help and sorry if it is somewhere here.

Thank you guys.

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  

×