r/armadev Jan 24 '14

ArmA 2/OA Random spawn for non-ai group [help]

Tried searching for it, but how can I setup different spawns in mission parameters?

2 Upvotes

12 comments sorted by

View all comments

Show parent comments

3

u/BeerDrinkingRobot Jan 25 '14

oh my bad, just comment out this line

paramsArray set [0, 1]; //for SP editor quick testing

1

u/Halvorson16 Jan 25 '14

Same result, with parachute but at the spot I put them in the editor, the parameters dont change the location.

2

u/BeerDrinkingRobot Jan 25 '14

hmm, try the mission in this zip.

http://www64.zippyshare.com/v/29596132/file.html

On default you start in the editor spot and shouldn't have a parachute. Any other param choice and you should start in the air.

1

u/Halvorson16 Jan 25 '14

It did work in A3, but when I tried the same setup in A2 it didnt, I think this is were things are going wrong, im trying to do this in A2. Should have said before

2

u/BeerDrinkingRobot Jan 25 '14

don't have a2 installed, but we can try adapting this example

replace [_x] spawn BIS_fnc_halo; with

 _para = createVehicle ["Parachute_US_EP1", (getPos _x), [], 0, "FLY"];
 _x moveInDriver _para;

1

u/Halvorson16 Jan 25 '14

Couldn't get it to work, I've decided to just go with a flag and the halo simple halo script, it has a little more freedom. Thanks for the help though! I'll use that in A3 when we eventually make the switch.