AR/isElement: Difference between revisions
Jump to navigation
Jump to search
m (fix typo) |
(→مثال) |
||
Line 12: | Line 12: | ||
==مثال== | ==مثال== | ||
<section name="كلنت" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local myMarker = createMarker(-2407.69531,-594.49060,132.64844, "arrow", 2, 255, 255, 255, 255) | local myMarker = createMarker(-2407.69531,-594.49060,132.64844, "arrow", 2, 255, 255, 255, 255) | ||
Line 23: | Line 24: | ||
addCommandHandler("element", isTheElement) | addCommandHandler("element", isTheElement) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==أنظر أيضا== | ==أنظر أيضا== | ||
{{Element functions}} | {{Element functions}} |
Revision as of 03:06, 29 March 2018
هذه الوظيفة تستخدم لفحص اذا كان العنصر موجود او غير موجود
تركيب الجملة البرمجية
bool isElement ( var theValue )
العناصر المطلوبة
- theValue: الشيئ الذي تريد فحصه اذا كان موجود
Returns
Returns اذا كان العنصر غير موجود false اذا كان العنصر موجوده, قيمة true قيمة
مثال
Click to collapse [-]
كلنتlocal myMarker = createMarker(-2407.69531,-594.49060,132.64844, "arrow", 2, 255, 255, 255, 255) function isTheElement() if isElement(myMarker) then outputChatBox("العنصر موجود") else outputChatBox("لم يتم ايجاد العنصر") end end addCommandHandler("element", isTheElement)
أنظر أيضا
- attachElements
- createElement
- destroyElement
- detachElements
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementByIndex
- getElementByID
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getAllElementData
- hasElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementType
- getElementVelocity
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementWithinColShape
- isElementWithinMarker
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementVelocity
- setLowLODElement
- getPedContactElement
- getResourceDynamicElementRoot
- getResourceRootElement