EnableObjectHitEvents: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|EnableObjectHitEvents(object [, bEnable])}} {{FuncParameters}} {{FuncParam|object |__EDIT_ME__}} {..." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Enables the [[OnObjectHit]] event.}} | ||
{{FuncSyntax|EnableObjectHitEvents(object [, bEnable])}} | {{FuncSyntax|EnableObjectHitEvents(object [, bEnable])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object | | {{FuncParam|object|The object identifier.}} | ||
{{FuncParamOptional|bEnable| | {{FuncParamOptional|bEnable|'''true''' to enable, default: '''true'''}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true'''}} | ||
== Example == | == Example == | ||
Line 15: | Line 15: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[GetObjectCount]] | |||
* [[GetObjectModelCount]] | |||
* [[GetObjectModelGroup]] | |||
* [[GetObjectModelName]] | |||
* [[GetStreamedObjects]] | |||
* [[GetObjectModel]] | |||
* [[GetObjectLocation]] | |||
* [[GetObjectRotation]] | |||
* [[GetObjectScale]] | |||
* [[GetObjectBoundingBox]] | |||
* [[GetObjectSize]] | |||
* [[GetObjectMass]] | |||
* [[SetObjectEditorSpeed]] | |||
* [[SetObjectEditable]] | |||
* [[SetObjectOutline]] | |||
* [[SetObjectCastShadow]] | |||
* [[SetObjectColor]] | |||
* [[SetObjectEmissiveColor]] | |||
* [[SetObjectTexture]] | |||
* [[SetObjectAnimatedTexture]] |
Latest revision as of 20:06, 30 August 2020
Description
Enables the OnObjectHit event.
Syntax
EnableObjectHitEvents(object [, bEnable])
Parameters
- object
The object identifier. - bEnable (optional)
true to enable, default: true
Return Value
- Returns true
Example
__EDIT_ME__
See also
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- GetObjectSize
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture