awake: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
No edit summary
Line 10: Line 10:
|gr1= Object Manipulation
|gr1= Object Manipulation


|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. In 2.10 this command can be used on corpses of type {{hl|Man}}
{{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.}}
{{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.}}



Revision as of 12:10, 13 May 2022

Hover & click on the images for description

Description

Description:
Wakes up sleeping PhysX object or puts a PhysX object to sleep. In 2.10 this command can be used on corpses of type Man
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 it 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