{{newin|[[0.9.0]]|090|type=method|text=It has been renamed from [[World:setAllowSleeping]]}}
Sets the sleep behaviour of the world.

== Function ==
=== Synopsis ===
<source lang="lua">
World:setSleepingAllowed( allow )
</source>
=== Arguments ===
{{param|boolean|allow|True if bodies in the world are allowed to sleep, or false if not.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::World]]
* [[World:isSleepingAllowed]]
[[Category:Functions]]
{{#set:Description=Sets the sleep behaviour of the world.}}
== Other Languages ==
{{i18n|World:setSleepingAllowed}}