SetMarkerSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Undo revision 46582 by Jaber (talk))
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
هذا الفنكشن يقول باعطاء الماركر حجم.
This function sets the size of the specified marker.


Setting negative value will "flip" the marker, do nothing or make it invisible:
* '''cylinder''' or '''arrow''': upside down
* '''ring''': inside out
* '''checkpoint''': disappear
* '''corona''': bigger


==Syntax==
==Syntax==
Line 10: Line 15:
{{OOP||[[Marker]]:setSize|size|getMarkerSize}}
{{OOP||[[Marker]]:setSize|size|getMarkerSize}}
===Required Arguments===
===Required Arguments===
*'''theMarker:''' الماركر الذي تريد تغيير حجمه
*'''theMarker:''' The [[marker]] that you wish to set the size of.
*'''size:''' الحجم الذي تريد اعطائه للماركر.
*'''size:''' A float representing new size of the marker.
 


===Returns===
Returns ''true'' if successful, ''false'' if failed.


==Example==
==Example==
هذا المثال يصنع ماركر باحداثيات 1000,1000,1000 ويعطيه حجم 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 ( 1000, 1000, 1000, "cylinder" ) --صنع ماركر
newmarker = createMarker ( 1000, 1000, 1000, "cylinder" )
setMarkerSize ( newmarker, 2.5 )--حجم 2.5
setMarkerSize ( newmarker, 2.5 )
</syntaxhighlight>
</syntaxhighlight>



Revision as of 03:08, 10 February 2016

This function sets the size of the specified marker.

Setting negative value will "flip" the marker, do nothing or make it invisible:

  • cylinder or arrow: upside down
  • ring: inside out
  • checkpoint: disappear
  • corona: bigger

Syntax

bool setMarkerSize ( marker theMarker, float size )

OOP Syntax Help! I don't understand this!

Method: Marker:setSize(...)
Variable: .size
Counterpart: getMarkerSize


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