SetMarkerIcon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Needs_Checking|Didn't work with:<pre> | |||
root = getRootElement () | |||
addEventHandler ( "onResourceStart", root, "ResourceStart" ) | |||
function ResourceStart ( name, root ) | |||
marker1 = createMarker ( 1935.0825, -1709.9506, 151.77 ) | |||
setMarkerIcon ( marker1, "arrow" ) | |||
end</pre> | |||
??--[[User:Ransom|Ransom]] 20:00, 10 April 2007 (CDT)}} | |||
__NOTOC__ | __NOTOC__ | ||
==Description== | ==Description== |
Revision as of 01:00, 11 April 2007
This article needs checking. | |
Reason(s): Didn't work with: root = getRootElement () addEventHandler ( "onResourceStart", root, "ResourceStart" ) function ResourceStart ( name, root ) marker1 = createMarker ( 1935.0825, -1709.9506, 151.77 ) setMarkerIcon ( marker1, "arrow" ) end ??--Ransom 20:00, 10 April 2007 (CDT) |
Description
This function sets an ID number that corresponds to a particular visual style of marker.
Syntax
bool setMarkerIcon ( marker marker, int icon )
Required Arguments
- marker: A marker class referencing the specified marker.
- icon: An integer (whole number) referring to the type of icon (see below).
Acceptable icon values
- "none": No icon
- "arrow": Arrow icon
- "finish": Finish (end-race) icon
Example
marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 ) setMarkerIcon ( marker, "finish" )
See Also
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker