Jump to content

Detecting player animation status in scripts


Sunnstor

Recommended Posts

Posted

I'm currently trying to write a script which prevents an animation from playing if the player is not able to move freely (Like beeing in a sexlab animation, or beeing in bleedout or lying on the floor during or after Defeat events).

 

The function:

 

isMovementControlsEnabled

 

seems to be the function to accomplish this, but on the Creationkit page it says:

 

Does not work reliably--will often return true even when movement is disabled.

 

Are there other, more reliable functions to detect the player status?

Posted

I've tested this, however it always returns 0 (Even if it should not be able to return 0 ... ). This is a sample:

 

 

SexLabFramework Property SexLab auto

 

Actor Property PlayerRef Auto

 

int validCheckTwo = SexLab.ValidateActor(PlayerRef )
Notification("Valid :" + validCheckTwo)

 

If I use SexLab.IsValidActor(PlayerRef ), it always returns false, even if the player just stands idle doing nothing.

 

Since the ValidateActor function can't return 0, I suppose that I'm doing something seriously wrong here ...  Sorry if this is noobish, but I'm learning while doing ...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...