SetMarkerIcon: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(OOP)
Line 6: Line 6:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool setMarkerIcon ( marker theMarker, string icon )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setMarkerIcon ( marker theMarker, string icon )</syntaxhighlight>
 
{{OOP|[[Marker]]:setIcon|icon|getMarkerIcon}}
===Required Arguments===
===Required Arguments===
* '''theMarker:''' The [[marker]] to change the visual style of
* '''theMarker:''' The [[marker]] to change the visual style of

Revision as of 01:51, 13 December 2014

Description

This function allows changing the icon of a checkpoint marker.

Syntax

bool setMarkerIcon ( marker theMarker, string icon )

OOP Syntax Help! I don't understand this!

Note: Marker:setIcon
Method: icon(...)
Variable: .getMarkerIcon


Required Arguments

  • theMarker: The marker to change the visual style of
  • icon: A string referring to the type of icon, acceptable values are:
    • "none": No icon
    • "arrow": Arrow icon
    • "finish": Finish icon (at end of race)

Example

This example creates a finish marker as you'd expect for the end of a race.

theMarker = createMarker ( 1000, 1000, 1000, 0, 255, 0, 0 ) 
setMarkerIcon ( theMarker, "finish" )

See Also