OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kilo11 on 14 Oct 2003, 05:13:07

Title: Artillery On, Artillery Off (Description.ext)
Post by: Kilo11 on 14 Oct 2003, 05:13:07
Umm, I am not sure if this is the right thread, so apologies.  I would like to try and make an option  in the Multiplayer Setup that will allow them to have the following options:

Short and simple to explain so far... But now the complications.  Basically, I want these options to remove or keep several M109 Pallidens that are placed on the map.  The M109's are named "Art1", "Art2", and "Art3".  So basically, I need to be able to remove or keep the M109's form the Multiplayer setup.  Now i know this must be hard, so I understand if I get no responces.  I put this in scripting b/c I figured it may need some scripts.  I know how to use the "Parameters" but this is beyond me.  THank you!


-=Kilo=-
Title: Re:Artillery On, Artillery Off (Description.ext)
Post by: Killswitch on 15 Oct 2003, 13:46:33
This might work...add the following to your description.ext:

Code: [Select]
titleParam1 = "Options"
valuesParam1[] = {0,1};
defValueParam1 = 0;
textsParam1[] = {"Artillery off", "Artillery on"};

...and in init.sqs you could have
Code: [Select]
artypieces = [art1, art2, art3];
?(param1 == 0): "deleteVehicle _x" forEach artypieces

(This probably belongs in the Multiplayer forum...)