SetMarkerSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
This function sets the size of the specified marker. The function returns false if it fails.
This function sets the size of the specified marker.


==Syntax==
==Syntax==
Line 8: Line 8:


===Required Arguments===
===Required Arguments===
*'''theMarker''': The [[marker]] that you wish to retrieve the size of.
*'''theMarker:''' The [[marker]] that you wish to retrieve the size of.
*'''size''': The new size of the marker.
*'''size:''' The new size of the marker.
 
===Returns===
Returns ''true'' if successful, ''false'' if failed.


==Example==
==Example==
This example creates a marker at the position 1000, 1000, 1000 and sets it's size to ''2.5''.
This example creates a marker at the position 1000, 1000, 1000 and sets its size to ''2.5''.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
newmarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
newmarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )

Revision as of 12:02, 16 August 2007

This function sets the size of the specified marker.

Syntax

bool setMarkerSize ( marker theMarker, float size )

Required Arguments

  • theMarker: The marker that you wish to retrieve the size of.
  • size: The new size of the marker.

Returns

Returns true if successful, false if failed.

Example

This example creates a marker at the position 1000, 1000, 1000 and sets its size to 2.5.

newmarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
setMarkerSize ( newmarker, 2.5)

See Also