SetMarkerType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 11: Line 11:


==Acceptable type values==
==Acceptable type values==
* '''0''': Checkpoint
* '''"checkpoint"''': Checkpoint
* '''1''': Corona (doughnut-shaped)
* '''"corona"''': Corona (doughnut-shaped)
* '''"cylinder"''': Cylinder
* '''"cone"''': Cone


==Example==
==Example==

Revision as of 20:53, 17 May 2006

Description

This function sets an ID number that corresponds to a particular visual style of marker.

Syntax

bool setMarkerType ( marker marker, int type)

Required Arguments

  • marker: A marker class referencing the specified marker.
  • type: An integer (whole number) referring to the type of marker (see below).

Acceptable type values

  • "checkpoint": Checkpoint
  • "corona": Corona (doughnut-shaped)
  • "cylinder": Cylinder
  • "cone": Cone

Example

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

setMarkerType ( marker, 1)