OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SharkDog on 01 May 2003, 20:51:40
-
Whats the command again for putting flags on something again? like on units, flagpoles, jeeps etc etc....
-
well for a flagpole you use this in the init field:
this setflagtexture "flagname"
the command ref says unitname setflagtexture flagname
so I'm not too sure if you can attach to a vehicle through the same command.... i've never tried it myself....
usa_vlajka.pac - American Flag
west_vlajka.pac - NATO Flag
rus_vlajka.pac - Soviet Flag
-
Thanks :D
-
You can place flag jpegs (or any other image for that matter) on certain objects (civ truck being one of them) by using the "setobjecttexture" command. From ComRef:
object setObjectTexture texture
Operand types:
object: Object
texture: Array
Compatibility:
Version 1.75 required.
Type of returned value:
Nothing
Description:
Null
This will make the image appear on the canvas cover on the side of a truck for example. If you have a flag carrier get in a vehicle, the flag is placed on the front fender on a short pole. Once the flag carrier leaves the vehicle, the flag will once again appear on his back. I know this happens for a civ truck, but I do not know what happens if the flag carrier enters a tank or apc or plane. See for yourself! I wanted to have a flag on a truck or jeep like a staff car for an officer and it worked until the flag carrier left the vehicle. :(