Jump to content
Sign in to follow this  
Easelm

Spawning Enemies at different specific locations.

Recommended Posts

Is there a simplified way to use the randomly picked markers to warp already placed units in the vicinity of a marker?

Share this post


Link to post
Share on other sites

Start this from a trigger or how ever you would like

warp.sqf

// List of markers
_markers = [markr1,markr2,markr3,etc];

// List of units preplaced in the editor.
_unitstowrp = [u1,u2,u3,etc];

//get random place to "warp" or set their position
_pos = (getMarkerPos (_markers select (floor(random(count _markers)))));

//set each units positions.
{_x setPos _pos;} forEach _unitstowrp;

Edited by Riouken

Share this post


Link to post
Share on other sites

That was most useful, going to check it out. Thanks a lot.

EDIT

How to activate this script reliably from the mission start? Via a trigger? I recall MP safe scripts needing some odd looking command instead of this exec something

Edited by alleycat

Share this post


Link to post
Share on other sites
Add an EAST soldier to the map with this in his init....

deleteVehicle this;

...or in your init.sqf use...

_sideHQ = createCenter EAST;

Used the init code (because I found it last night in the wiki) and it worked like a charm.

Appreciate the help!

Share this post


Link to post
Share on other sites

If I were you... I would use some of the UPS Scripts.

Share this post


Link to post
Share on other sites

Can someone give me an example of 'spawn waves' on the map zagabrad?

30+ min and i cant figure it out...

feelsbadman.jpg

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  

×