awake: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


|descr= Wakes up sleeping PhysX object or puts a PhysX object to sleep.
|descr= Wakes up sleeping PhysX object or puts a PhysX object to sleep.
{{Feature | Informative | This command won't have lasing effect on vehicles as vehicles are actively simulated, but it works rather well on smaller PhysX enabled objects}}
{{Feature | Informative | This command won't have lasting effect on vehicles as vehicles are actively simulated, but it works rather well on smaller PhysX enabled objects}}
|s1= object [[awake]] awake
|s1= object [[awake]] awake



Revision as of 18:33, 4 November 2021

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.08.

Description

Description:
Wakes up sleeping PhysX object or puts a PhysX object to sleep.
This command won't have lasting effect on vehicles as vehicles are actively simulated, but it works rather well on smaller PhysX enabled objects
Groups:
Object Manipulation

Syntax

Syntax:
object awake awake
Parameters:
object: Object - PhysX object
awake: Boolean - true to awake the object, false - to put to sleep
Return Value:
Nothing

Examples

Example 1:
_object awake false;

Additional Information

See also:
isAwake addTorque addForce vectorModelToWorld vectorModelToWorldVisual selectionPosition

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note