GetMarkerType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
int getMarkerType ( [[marker]] marker)
<syntaxhighlight lang="lua">int getMarkerType ( marker marker)</syntaxhighlight>


===Required Arguments===
===Required Arguments===
Line 16: Line 16:


==Example==
==Example==
marker = [[createMarker]] ( 1000, 1000,1000, 0, 255, 0, 0 )
<syntaxhighlight lang="lua">marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 )
gettype = getMarkerType (marker)
gettype = getMarkerType (marker)
if (gettype == 0)
 
  serverChat ("Checkpoint marker.")
if (gettype == 0)
else
  serverChat ("Checkpoint marker.")
  serverChat ("Corona marker.")
else
end</syntaxhighlight>
  serverChat ("Corona marker.")
end

Revision as of 03:41, 20 May 2006

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

  • "checkpoint": Checkpoint
  • "ring": Ring (doughnut-shaped)
  • "cylinder": Cylinder
  • "arrow": Animated arrow pointing down

Example

marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 )
gettype = getMarkerType (marker)
if (gettype == 0)
  serverChat ("Checkpoint marker.")
else
  serverChat ("Corona marker.")
end