OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ducky Zeus on 30 Aug 2004, 09:46:59

Title: Flag
Post by: Ducky Zeus on 30 Aug 2004, 09:46:59
Hi do u know the script which adds a flag onto the flag pole
   Thx, ducky
Title: Re:Flag
Post by: C0LDSt33L on 30 Aug 2004, 10:09:48
Easy one this. You don't even need a script. Just put

Code: [Select]
this setflagtexture "usa_Vlajka.pac"
in the initialisation field of the flag. You can also use "rus_Vljaka.pac" for a russian flag.

To change the flag during a mission use FlagName SetFlagTexture "FlagTexture" in the activation field of a trigger.

If you want to put it on someones back there is a thread about it here: http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=18907;start=0 (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=18907;start=0)