SetObjectCastShadow: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetObjectCastShadow(object, bEnable)}} {{FuncParameters}} {{FuncParam|object|__EDIT_ME__}} {{FuncP...")
 
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|__EDIT_ME__}}
{{FuncDescription|Toggles shadow casting for an object.}}


{{FuncSyntax|SetObjectCastShadow(object, bEnable)}}
{{FuncSyntax|SetObjectCastShadow(object, bEnable)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|object|__EDIT_ME__}}
{{FuncParam|object|The object identifier.}}
{{FuncParam|bEnable|__EDIT_ME__}}
{{FuncParam|bEnable|'''true''' to enable shadows, '''false''' to disable.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true'''.}}


== Example ==
== Example ==
Line 15: Line 15:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[GetObjectCount]]
* [[GetObjectModelCount]]
* [[GetObjectModelGroup]]
* [[GetObjectModelName]]
* [[GetStreamedObjects]]
* [[GetObjectModel]]
* [[GetObjectLocation]]
* [[GetObjectRotation]]
* [[GetObjectScale]]
* [[GetObjectBoundingBox]]
* [[GetObjectSize]]
* [[EnableObjectHitEvents]]
* [[GetObjectMass]]
* [[SetObjectEditorSpeed]]
* [[SetObjectEditable]]
* [[SetObjectOutline]]
* [[SetObjectColor]]
* [[SetObjectEmissiveColor]]
* [[SetObjectTexture]]
* [[SetObjectAnimatedTexture]]

Latest revision as of 20:07, 30 August 2020

SetObjectCastShadow

Type: Function
Context: Client
Introduced: v1.0

Description

Toggles shadow casting for an object.

Syntax

SetObjectCastShadow(object, bEnable)

Parameters

  • object
    The object identifier.
  • bEnable
    true to enable shadows, false to disable.

Return Value

  • Returns true.

Example

__EDIT_ME__

See also