SetMarkerSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
This function sets the size of the specified marker.
This function sets the size of the specified marker.


Line 9: Line 10:
===Required Arguments===
===Required Arguments===
*'''theMarker:''' The [[marker]] that you wish to set the size of.
*'''theMarker:''' The [[marker]] that you wish to set the size of.
*'''size:''' The new size of the marker.
*'''size:''' A float representing new size of the marker.


===Returns===
===Returns===
Line 15: Line 16:


==Example==
==Example==
This example creates a marker at the position 1000, 1000, 1000 and sets its size to ''2.5''.
This example creates a cylinder 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 ( 1000, 1000, 1000, "cylinder" )
setMarkerSize ( newmarker, 2.5 )
setMarkerSize ( newmarker, 2.5 )
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
===Client===
{{Client marker functions}}
===Server===
{{Marker functions}}
{{Marker functions}}

Revision as of 15:09, 4 May 2008

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 set the size of.
  • size: A float representing new size of the marker.

Returns

Returns true if successful, false if failed.

Example

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

newmarker = createMarker ( 1000, 1000, 1000, "cylinder" )
setMarkerSize ( newmarker, 2.5 )

See Also

Client



Server