OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Arkon on 26 Feb 2007, 20:43:04

Title: Flares in Armed Assault
Post by: Arkon on 26 Feb 2007, 20:43:04


Hi,

Wondering if anyone has a working script to to create flares (camcreate) in Armed Assault, iv'e tried a few from Flashpoint but am unable to
get any to work in AA.

Thanms

Arkon
Title: Re: Flares in Armed Assault
Post by: Mandoble on 26 Feb 2007, 21:04:36
Try createVehicle instead of camCreate in ArmA.
Title: Re: Flares in Armed Assault
Post by: Arkon on 26 Feb 2007, 21:14:41

Thaks for the quick reply...

Erm.... not sure how one might use createVehicle....

Any more info....

Cheers

Arkon
Title: Re: Flares in Armed Assault
Post by: Mandoble on 26 Feb 2007, 21:27:12
COMREF createVehicle (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=c#createVehicle)

Almost the same way as camCreate.
Title: Re: Flares in Armed Assault
Post by: Arkon on 26 Feb 2007, 21:39:10


An example would be great if anyone can come up with one :)


Arkon
Title: Re: Flares in Armed Assault
Post by: Mandoble on 26 Feb 2007, 21:44:25
A simple radio trigger activation field (make sure it is night time):
Code: [Select]
"F_40mm_Green" createVehicle [getPos player select 0, getPos player select 1, 50]
If "F_40mm_Green" is wrong (not sure), try with "FlareGreen_M203"
Title: Re: Flares in Armed Assault
Post by: Arkon on 26 Feb 2007, 22:00:44


Hi,

Gave it a try>

"FlareGreen_M203" createVehicle [getPos player select 0, getPos player select 1, 50]

Type Object expected nothing error

Arkon
Title: Re: Flares in Armed Assault
Post by: Planck on 26 Feb 2007, 22:13:07
flareG = "F_40mm_Green" createVehicle [getPos player select 0, getPos player select 1, 100]

Works fine   :cool2:


Planck
Title: Re: Flares in Armed Assault
Post by: Wolfrug on 26 Feb 2007, 22:14:22
Hey Arkon : replied to your thread in the BI forums as well, but I thought I'd fix it up a wee bit here:

IMHO, for createVehicle to work (much like many commands), you need to "name" it. Try : YourFlare = "FlareGreen_m203" createvehicle [getPos player select 0, getPos player select 1, 50]. Good luck!


Damn you Planck! Quick bugger!  :cool2:

Wolfrug out.
Title: Re: Flares in Armed Assault
Post by: Arkon on 26 Feb 2007, 22:28:47


Thanks to u guys...

Wolfrug, Planck and Mandoble

works a treat!!

Arkon