OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: GunnerySargeantBeckett on 12 Aug 2006, 17:24:55

Title: 21- gun salute
Post by: GunnerySargeantBeckett on 12 Aug 2006, 17:24:55
can someone script a 21 gun salute
Title: Re: 21- gun salute
Post by: XCess on 13 Aug 2006, 10:51:13
all you have to do is give each unit the unit fire"m16" command in a script. For some random reason, they automatically aim into the air.
Title: Re: 21- gun salute
Post by: GunnerySargeantBeckett on 13 Aug 2006, 15:11:47
CAN YOU SCRIPT IT IM NEW TO EDITING
Title: Re: 21- gun salute
Post by: XCess on 13 Aug 2006, 15:33:44
in the trigger you want to start the salute type []exec"salute.sqs"
then make a text file in the mission folder and name it salute.sqs (make sure you allow view of file extensions in your folder options). Inside the script type the following:

unit1 fire"m16"
unit2 fire"m16"
unit3 fire"m16"

add a line for each unit you want to fire, and remember to name them in the editor ;)
Also, if you want it to happen slow then type setacctime 0.3 at the beginning of the script and then setacctime 1 at the end of the script.
Title: Re: 21- gun salute
Post by: macguba on 13 Aug 2006, 18:38:46
GunnerySargeantBeckett, here at OFPEC capital letters in ordinary text are used to indicate shouting.    It is very occasionally acceptable to shout, but as a general rule we discourage it.   ;)
Title: Re: 21- gun salute
Post by: penguinman on 14 Aug 2006, 01:59:28
he probably just left CapsLock on and forgot to check his message, I do that alot.


Anyways, PM me if your still having trouble and Il do it.