Difference between revisions of "Talk:IsSneaking - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>MaboroshiDaikon
m
imported>MaboroshiDaikon
m
Line 1: Line 1:
I can get the following to work as expected:
I can get the following to work as expected:


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


But the following does not:
But the following does not:


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


Tried the following syntax and still no luck:
Tried the following syntax and still no luck:


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

Revision as of 22:06, 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