GetMarkerType

From Multi Theft Auto: Wiki
Revision as of 04:12, 31 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function returns an ID number that corresponds to a particular type of marker.

Syntax

int getMarkerType ( marker marker)

Required Arguments

  • marker: A marker class referencing the specified marker.

Return Values

  • 0: Checkpoint
  • 1: Corona (doughnut-shaped)

Example

marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 )

gettype = getMarkerType (marker)
if (gettype == 0)
  serverChat ("Checkpoint marker.")
else
  serverChat ("Corona marker.")
end