getMarkerTargetArrowProperties
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.
function returns the color, transparency and size for a checkpoint marker's target arrow.
Syntax
int, int, int, int, int getMarkerTargetArrowProperties ( marker theMarker )Required Arguments
- theMarker: The marker that you wish to retrieve the color and size of.
Returns
- int: value1
- int: value2
- int: value3
- int: value4
- int: value5
Returns five ints corresponding to the amount of red , green , blue , alpha and size of the marker's target arrow, false if invalid arguments were passed.
Code Examples
shared
addEventHandler("onClientResourceStart", resourceRoot, function()
local myMarker = createMarker(0, 0, 3, "checkpoint", 2.0, 255, 0, 0, 150)
setMarkerTarget(myMarker, 10, 0, 3)
local r, g, b, a, size = getMarkerTargetArrowProperties(myMarker)
if r then outputChatBox("Marker Target Arrow Properties:") outputChatBox("Color: R=" .. r .. " G=" .. g .. " B=" .. b) outputChatBox("Alpha: " .. a) outputChatBox("Size: " .. size) else outputChatBox("Error: Could not retrieve marker target arrow properties.") endend)