GetMarkerType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 11: Line 11:
==Return Values==
==Return Values==
* '''"checkpoint"''': Checkpoint
* '''"checkpoint"''': Checkpoint
* '''"corona"''': Corona (doughnut-shaped)
* '''"ring"''': Ring (doughnut-shaped)
* '''"cylinder"''': Cylinder
* '''"cylinder"''': Cylinder
* '''"cone"''': Cone
* '''"arrow"''': Animated arrow pointing down


==Example==
==Example==

Revision as of 21:12, 17 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