SetMarkerTarget: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Server client function}} | {{Server client function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{Needs_Checking|Shouldn't it be setMarkerTarget ( marker, x, y, z ) ?|[[User:Erorr404|Erorr404]]}} | {{Needs_Checking|Shouldn't it be setMarkerTarget ( marker, x, y, z ) ?|[[User:Erorr404|Erorr404]]}} | ||
{{Needs_Checking|Also, entering anything other than 0, 0, 0 does not show the arrow (setMarkerTarget ( marker, 0, 0, 0 ) does show the arrow)|[[User:Erorr404|Erorr404]]}} | {{Needs_Checking|Also, entering anything other than 0, 0, 0 does not show the arrow (setMarkerTarget ( marker, 0, 0, 0 ) does show the arrow)|[[User:Erorr404|Erorr404]]}} | ||
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== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setMarkerTarget ( marker, x, y, z ) | bool setMarkerTarget ( marker theMarker, float x, float y, float z ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===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=== | ||
Returns ''true'' if | Returns ''true'' if target was set, ''false'' otherwise. | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Marker functions}} | {{Marker functions}} | ||
[[Category:Incomplete]] |
Revision as of 00:37, 5 November 2007
This article needs checking. | |
Reason(s): Shouldn't it be setMarkerTarget ( marker, x, y, z ) ? |
This article needs checking. | |
Reason(s): Also, entering anything other than 0, 0, 0 does not show the arrow (setMarkerTarget ( marker, 0, 0, 0 ) does show the arrow) |
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.