SetMarkerTarget

From Multi Theft Auto: Wiki
Revision as of 04:52, 30 December 2007 by EAi (talk | contribs)
Jump to navigation Jump to search

This function sets the 'target' for a marker. Only the checkpoint and ring marker types can have a target.

For checkpoint markers, the target is shown as an arrow aiming at the point specified.

For ring markers, the target is shown by rotating the whole ring so that it faces the point specified.

This function is most useful for setting up markers for races, where each marker points to the next one's position.

Syntax

bool setMarkerTarget ( marker theMarker, float x, float y, float z )    

Required Arguments

  • theMarker: The marker to set the target of
  • x: The x axis of the coordinate to target the marker at
  • y: The y axis of the coordinate to target the marker at
  • z: The z axis of the coordinate to target the marker at

Returns

Returns true if target was set, false otherwise.

Example


See Also