setMarkerTargetArrowProperties
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
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
- marker: MISSING_PARAM_DESC
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.
- r (default: 255): The amount of red in the final color (0 to 255).
- g (default: 64): The amount of green in the final color (0 to 255).
- b (default: 64): The amount of blue in the final color (0 to 255).
- a (default: 255): The amount of alpha in the final color (0 to 255).
- size (default: markerSize * 0.625): Target arrow size.
Returns
- bool: value
Code Examples
shared
local newMarker = createMarker ( 0, 0, 2, "checkpoint", 2, 255, 0, 0, 255 ) -- Create a red checkpoint markersetMarkerTarget(newMarker, 0, 10, 5) -- set target arrow direction
setMarkerTargetArrowProperties(newMarker, 0, 255, 255, 255) -- Set target arrow color to light blue (aqua)