Difference between revisions of "SetDontMove - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JLundin
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' Actor Script Flags this actor as "don't move" or not. == Syntax == <source lang="papyrus"> Function SetDontM...")
 
imported>SarthesArai
(→‎Notes: note on player behaviour)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
'''Member of:''' [[Actor Script]]
'''Member of:''' [[Actor Script]] ''(Requires 1.8)''


Flags this actor as "don't move" or not.
Flags this actor as "don't move" or not.
Line 27: Line 27:
Dragon.SetDontMove(false)
Dragon.SetDontMove(false)
</source>
</source>
== Notes ==
* Using SetDontMove on the player disables player movement, camera switching, and camera rotating, but keeps the full HUD displayed (unlike [[DisablePlayerControls - Game|Game.DisablePlayerControls()]]).


== See Also ==
== See Also ==
*[[Actor Script]]
*[[Actor Script]]

Latest revision as of 12:11, 12 October 2016

Member of: Actor Script (Requires 1.8)

Flags this actor as "don't move" or not.

Syntax[edit | edit source]

Function SetDontMove(bool abDontMove = true) native

Parameters[edit | edit source]

  • abDontMove: Set to limit the actors movement. Don't let this actor be pushed around by another actor.
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set dragon to stay put and not be pushed around.
Dragon.SetDontMove()


; Clear dragons's "don't move" status
Dragon.SetDontMove(false)

Notes[edit | edit source]

  • Using SetDontMove on the player disables player movement, camera switching, and camera rotating, but keeps the full HUD displayed (unlike Game.DisablePlayerControls()).

See Also[edit | edit source]