OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Insanoblan on 23 Jul 2004, 21:00:38

Title: Marker Colours
Post 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?
Title: Re:Marker Colours
Post by: Artak on 23 Jul 2004, 21:21:31
Simple answer, "mark1" setmarkercolor "colorgreenalpha"
/me wonders what the alpha has got to do with it.  ::)

Quote
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'.  :)
Title: Re:Marker Colours
Post by: Kaliyuga on 24 Jul 2004, 00:24:19
 I think the Alpha ones are slightly transparent because of the edition of an Alpha Channel perhaps  ;D

:toocool:
Title: Re:Marker Colours
Post by: Artak on 24 Jul 2004, 00:27:59
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