SetMarkerTargetArrowProperties
Jump to navigation
Jump to search
This function changes the color and size of the checkpoint marker's target arrow.
Syntax
bool setMarkerTargetArrowProperties(element marker [, int r = 255, int g = 64, int b = 64, int a = 255, float size = markerSize * 0.625 ] )
Required Arguments
- theMarker: The marker that you wish to set the color of.
- r: The amount of red in the final color (0 to 255).
- g: The amount of green in the final color (0 to 255).
- b: The amount of blue in the final color (0 to 255).
- a: The amount of alpha in the final color (0 to 255).
- size: Target arrow size.
Example
local newMarker = createMarker ( 0, 0, 2, "checkpoint", 2, 255, 0, 0, 255 ) -- Create a red checkpoint marker setMarkerTarget(newMarker, 0, 10, 5) -- set target arrow direction setMarkerTargetArrowProperties(newMarker, 0, 255, 255, 255) -- Set target arrow color to light blue (aqua)
See Also
Shared
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerTargetArrowProperties
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerTargetArrowProperties
- setMarkerType
- isElementWithinMarker