AR/setBlipVisibleDistance: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "{{Server client function}} __NOTOC__ تقوم الوظيفة بتغيير المسافة التي تظهر فيها العلامة.  ==Syntax==  <syntaxhighlight lang="lua">float setBlipVisible...")  | 
				No edit summary  | 
				||
| Line 3: | Line 3: | ||
تقوم الوظيفة بتغيير المسافة التي تظهر فيها العلامة.  | تقوم الوظيفة بتغيير المسافة التي تظهر فيها العلامة.  | ||
==  | ==تركيب الجملة البرمجية==    | ||
<syntaxhighlight lang="lua">float setBlipVisibleDistance ( blip theBlip, float theDistance )</syntaxhighlight>    | <syntaxhighlight lang="lua">float setBlipVisibleDistance ( blip theBlip, float theDistance )</syntaxhighlight>    | ||
===  | ===مطلوب===    | ||
*'''theBlip:''' البلب المراد تغييره.  | *'''theBlip:''' البلب المراد تغييره.  | ||
*'''theDistance:''' المسافة.  | *'''theDistance:''' المسافة.  | ||
| Line 13: | Line 13: | ||
Returns true if successful, false otherwise.  | Returns true if successful, false otherwise.  | ||
==  | ==مثال==    | ||
تغيير المسافة بإستخدام setBlipVisibleDistance  | تغيير المسافة بإستخدام setBlipVisibleDistance  | ||
<syntaxhighlight lang="lua">  | <syntaxhighlight lang="lua">  | ||
| Line 29: | Line 29: | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
==  | ==انظر ايضاً==  | ||
{{AR/Blip_functions}}  | {{AR/Blip_functions}}  | ||
[[en:setBlipVisibleDistance]]  | [[en:setBlipVisibleDistance]]  | ||
Latest revision as of 10:16, 3 January 2014
تقوم الوظيفة بتغيير المسافة التي تظهر فيها العلامة.
تركيب الجملة البرمجية
float setBlipVisibleDistance ( blip theBlip, float theDistance )
مطلوب
- theBlip: البلب المراد تغييره.
 - theDistance: المسافة.
 
Returns
Returns true if successful, false otherwise.
مثال
تغيير المسافة بإستخدام setBlipVisibleDistance
local blip = createBlip ( 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1000 ); outputDebugString ( "Blip visible distance: ".. getBlipVisibleDistance ( blip ) ); --1000 setBlipVisibleDistance ( blip, 2000 ); outputDebugString ( "Blip visible distance: ".. getBlipVisibleDistance ( blip ) ); --2000
جلب جميع العلامات وقسمة مسافتهم على 2
for index, blip in ipairs ( getElementsByType ( "blip" ) ) do -- جلب جميع العلامات setBlipVisibleDistance ( blip, getBlipVisibleDistance ( blip ) / 2 ); -- قسمة المسافة على 2 end