Sign in to follow this  
Followers 0
panda123

spawn script problem

5 posts in this topic

Hi,

I have a little problem with a spawnscript. I have already posted in other thread because I thought it was a problem addon but apparently I have the same problem in vanilla too.

This is what I have posted.

Hi all,

Does someone had a problem to spawn vehicle like T80 or T72 ?

I use this script but they appear and 1 second later they disapear

Spoiler:

West setFriend [East,0];

East setFriend [West,0];

EastGrp01c = Creategroup EAST;

_leader = EastGrp01c createUnit ["cwr2_T80", [(getMarkerPos "po15") select 0,(getMarkerPos "po15") select 1,0], [], 3, "FORM"];

_unit = EastGrp01c createUnit ["cwr2_T80", [(getMarkerPos "po15") select 0,(getMarkerPos "po15") select 1,0], [], 3, "FORM"];

_unit = EastGrp01c createUnit ["cwr2_T80", [(getMarkerPos "po15") select 0,(getMarkerPos "po15") select 1,0], [], 3, "FORM"];

_leader = leader EastGrp01c;

wp1 = EastGrp01c addwaypoint [position fire1, 0];

wp1 setwaypointtype "MOVE";

wp1 setWaypointCombatMode "RED";

wp1 setWaypointFormation "LINE";

wp1 setWaypointSpeed "NORMAL";

wp1 setWaypointBehaviour "COMBAT";

(I use the same script to spawn infantry that I don't have problem. I don't use other addon. The game is fully updated).

If someone have other solution his help'd be appreciated.

Thanks for answers.

What's wrong with this script ?

Share this post


Link to post
Share on other sites

ok after I have to use createUnit to put inside the vehicle, I will see that, thanks.

I have found the solution thanks :)

Edited by panda123

Share this post


Link to post
Share on other sites
ok after I have to use createUnit to put inside the vehicle, I will see that, thanks.

I have found the solution thanks :)

I would recommend you use BIS_fnc_spawnVehicle

That will populate the vehicle with a crew for you, without having to use extra script functions.

Share this post


Link to post
Share on other sites

@panda123

for what your trying to do this script does exactly that:

AI vehicle respawn patrol area using UPS

http://www.armaholic.com/page.php?id=6543

you can review the script used and get other ideas, or use it as a reference, also see the demo on how its done and

then adjust your own where needed, or just use the script altogether.

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  
Followers 0