GetMarkerType

From Multi Theft Auto: Wiki
Revision as of 15:07, 14 August 2006 by EAi (talk | contribs)
Jump to navigation Jump to search

This function returns an type for a marker.

Syntax

string getMarkerType ( marker theMarker)

Required Arguments

  • theMarker: A marker element referencing the specified marker.

Returns

Returns false if the marker passed is invalid or a string containing one of the following:

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

Example

marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 )
gettype = getMarkerType (marker)
outputChatBox ( "Its a " .. gettype .. " marker!" )

See Also