SetMarkerIcon: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
==Description==
This function sets the icon type for a marker.
This function sets an ID number that corresponds to a particular visual style of marker.


==Syntax==
==Syntax==
Line 8: Line 8:
===Required Arguments===
===Required Arguments===
* '''marker''': A [[marker]] class referencing the specified marker.
* '''marker''': A [[marker]] class referencing the specified marker.
* '''icon''': An integer (whole number) referring to the icon of marker (see below).
* '''icon''': An integer (whole number) referring to the type of icon (see below).


==Acceptable icon values==
==Acceptable icon values==
* '''0''': No icon
* '''"none"''': No icon
* '''1''': Arrow icon
* '''"arrow"''': Arrow icon
* '''2''': Finish icon
* '''"finish"''': Finish (end-race) icon


==Example==
==Example==
<syntaxhighlight lang="lua">marker = createMarker ( 1000, 1000, 1000, "checkpoint", 255, 0, 0 )  
<syntaxhighlight lang="lua">marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 )  
setMarkerIcon ( marker, 1 )</syntaxhighlight>
setMarkerIcon ( marker, "finish" )</syntaxhighlight>


==See Also==
==See Also==
{{Marker functions}}
{{Marker functions}}

Revision as of 10:52, 24 September 2006

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