OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 25 Jun 2004, 04:19:02

Title: Start A Flare In The Air At Start?
Post by: CopyrightPhilly on 25 Jun 2004, 04:19:02
Yo

Dose Anyone Know How I Would Start A Red Flare About A Truck Name Truck1 As The Mission Starts?

Would Be Usfull In A sqs Script (thats the only way i think its possable anyways)

cheers, Philly
Title: Re:Start A Flare In The Air At Start?
Post by: CopyrightPhilly on 25 Jun 2004, 04:53:56
ok found a way to do it:

====================
flare.sqs
====================

_flareposx=(getpos truck1) select 0
_flareposy=(getpos truck1) select 1
_flareposz=(getpos truck1) select 2

_flarepos=[_flareposx,_flareposy,_flareposz + 120]

_flare = "FlareRed" CamCreate (_flarepos);
exit;

====================
[] exec "flare.sqs"
====================

cheers, Philly