OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Insanoblan on 23 Jul 2004, 21:00:38
-
Simple question, I have a trigger (trig1) and a marker (mark1). I want the Marker color to turn from red to green once the trigger is activated. What do I type in the "On Activation" field of the trigger?
-
Simple answer, "mark1" setmarkercolor "colorgreenalpha"
/me wonders what the alpha has got to do with it. ::)
marker setMarkerColor color
Operand types:
marker: String
color: String
Compatibility:
Version 1.21 required.
Type of returned value:
Nothing
Description:
Set marker color. Color is one of: "Default", "ColorBlack", "ColorRed", "ColorRedAlpha", "ColorGreen", "ColorGreenAlpha", "ColorBlue", "ColorYellow", "ColorWhite".
Example:
"MarkerOne" setMarkerColor "ColorBlack"
This and many more marker commands can be found in the official command reference, which can be found in the editors depot under 'references'. :)
-
I think the Alpha ones are slightly transparent because of the edition of an Alpha Channel perhaps ;D
:toocool:
-
Oh yea right. Silly me. :D
I've never used "colorgreenalpha" and couldn't see the 'normal' "colorgreen" on the list. That's when I started to question my sanity and then you came along :tomato: :D