IsValidObject: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription|Check if the specified object is valid or not.}} | {{FuncDescription|Check if the specified object is valid or not.}} | ||
Line 8: | Line 8: | ||
{{FuncParam|object|The object identifier.}} | {{FuncParam|object|The object identifier.}} | ||
{{FuncReturnValue|Returns '''true''' | {{FuncReturnValue|Returns '''true''' if the object exists..}} | ||
== Example == | == Example == |
Latest revision as of 20:05, 25 March 2020
Description
Check if the specified object is valid or not.
Syntax
IsValidObject(object)
Parameters
- object
The object identifier.
Return Value
- Returns true if the object exists..
Example
if IsValidObject(objectid) then
DestroyObject(objectid)
end
See also
- CreateObject
- DestroyObject
- IsValidObject
- GetObjectCount
- GetObjectModel
- IsObjectStreamedIn
- EnableObjectStreamEvents
- SetObjectStreamDistance
- SetObjectLocation
- GetObjectLocation
- SetObjectRotation
- GetObjectRotation
- SetObjectScale
- GetObjectScale
- SetObjectAttached
- SetObjectDetached
- IsObjectAttached
- GetObjectAttachmentInfo
- IsObjectMoving
- SetObjectMoveTo
- StopObjectMove
- SetObjectRotateAxis
- GetObjectModelCount
- GetObjectMass
- GetStreamedObjects
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- SetObjectEditable
- SetObjectOutline
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture
- SetObjectCastShadow
- SetObjectDimension
- GetObjectActor
- GetAllObjects
- SetObjectModel