Difference between revisions of "GetLastPlayerAction"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Quetzilla
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=='''Description'''==
{{Function
 
|origin = GECK1
'''GetLastPlayerAction''' gets the last Action the player performed. Not called on a reference and no parameters. In a condition you can test the return values against the action number.
|summary = Returns the index of the last action performed by the player.
 
|returnType = int
=='''Syntax'''==
  |example = GetLastPlayerAction
  GetLastPlayerAction  
Returns the index of the last action performed by the player
}}
{{:ActionIndex}}
{{:ActionIndex}}


=='''Examples'''==
==See Also==
if GetLastPlayerAction == 2
*[[IsPlayerActionActive]]
Condition is true if last action performed by player was throwing a grenade.
 
=='''See Also'''==
[[IsPlayerActionActive]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Animation Functions]]
[[Category:Animation Functions]]
[[Category:Animation Functions (GECK 1.1)]]
[[Category:Condition Functions]]
[[Category:Condition Functions]]
[[Category:Condition Functions (GECK 1.1)]]

Latest revision as of 12:28, 15 August 2009

< [[::Category:Functions|Category:Functions]]

A function included in the GECK version 1.1.0.36.

Description

Returns the index of the last action performed by the player.

Syntax

[help]
(int) GetLastPlayerAction

Example

GetLastPlayerAction

Returns the index of the last action performed by the player

Action Indices

  • 1 = PLAYER_ACTION_SWING_MELEE_WEAPON
  • 2 = PLAYER_ACTION_THROW_GRANADE
  • 3 = PLAYER_ACTION_FIRE_WEAPON
  • 4 = PLAYER_ACTION_LAY_MINE
  • 5 = PLAYER_ACTION_Z_KEY_OBJECT
  • 6 = PLAYER_ACTION_JUMPING
  • 7 = PLAYER_ACTION_KNOCKING_OVER_OBJECTS
  • 8 = PLAYER_ACTION_STAND_ON_TABLE_CHAIR
  • 9 = PLAYER_ACTION_IRON_SIGHTS
  • 10 = PLAYER_ACTION_DESTROY_OBJECT

See Also