Difference between revisions of "Talk:IsSneaking - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>MaboroshiDaikon
(Not sure if this is working properly with Game.GetPlayer() reference.)
 
imported>MaboroshiDaikon
m
Line 2: Line 2:


If (Game.GetPlayer().IsWeaponDrawn() == 1)
If (Game.GetPlayer().IsWeaponDrawn() == 1)
   ;Do Something
   Do Something
EndIf
EndIf


Line 8: Line 8:


If (Game.GetPlayer().IsSneaking() == 1)
If (Game.GetPlayer().IsSneaking() == 1)
   ;Do Something
   Do Something
EndIf
EndIf


Line 14: Line 14:


If (Game.GetPlayer().IsSneaking())
If (Game.GetPlayer().IsSneaking())
   ;Do Something
   Do Something
EndIf
EndIf

Revision as of 22:05, 10 February 2012

I can get the following to work as expected:

If (Game.GetPlayer().IsWeaponDrawn() == 1)

  Do Something

EndIf

But the following does not:

If (Game.GetPlayer().IsSneaking() == 1)

  Do Something

EndIf

Tried the following syntax and still no luck:

If (Game.GetPlayer().IsSneaking())

  Do Something

EndIf