UE2:ACTION SetPhysics (UT2004): Difference between revisions
From Unreal Wiki, The Unreal Engine Documentation Site
Auto-generated page |
m added descriptions |
||
Line 4: | Line 4: | ||
| parent2 = Object | | parent2 = Object | ||
}} | }} | ||
{{ | Sets a new physics mode for the player who activated the script sequence. | ||
'''Note:''' This action only calls the {{tl|SetPhysics||}}() function on the {{tl|Instigator||Actor internal variables}} of the {{cl|ScriptedController}}. It's up to the {{cl|Pawn}} and its {{cl|Controller}} to make use of the new physics mode for the Pawn's movement. | |||
==Properties== | ==Properties== | ||
Line 12: | Line 13: | ||
'''Type:''' {{tl|EPhysics|Actor|enums}} | '''Type:''' {{tl|EPhysics|Actor|enums}} | ||
The physics mode to set. | |||
===Default values=== | ===Default values=== | ||
Line 29: | Line 30: | ||
'''Overrides:''' {{tl|GetActionString|ScriptedAction}} | '''Overrides:''' {{tl|GetActionString|ScriptedAction}} | ||
Returns the numeric representation of the selected physics mode enum value appended to the action name. | |||
====InitActionFor==== | ====InitActionFor==== | ||
Line 36: | Line 37: | ||
'''Overrides:''' {{tl|InitActionFor|ScriptedAction}} | '''Overrides:''' {{tl|InitActionFor|ScriptedAction}} | ||
Sets the [[Instigator]]'s physics to the new physics mode. |
Latest revision as of 02:16, 6 December 2008
![]() |
Object >> ScriptedAction >> ACTION_SetPhysics |
- Package:
- Gameplay
- This class in other games:
Sets a new physics mode for the player who activated the script sequence.
Note: This action only calls the SetPhysics() function on the Instigator of the ScriptedController. It's up to the Pawn and its Controller to make use of the new physics mode for the Pawn's movement.
Properties
Property group 'Action'
NewPhysicsMode
Type: Actor.EPhysics
The physics mode to set.
Default values
Property | Value |
---|---|
ActionString | "change physics to " |
Instance functions
GetActionString
function string GetActionString ()
Overrides: ScriptedAction.GetActionString
Returns the numeric representation of the selected physics mode enum value appended to the action name.
InitActionFor
function bool InitActionFor (ScriptedController C)
Overrides: ScriptedAction.InitActionFor
Sets the Instigator's physics to the new physics mode.