Forum rules - please read before posting.

Accessign isrunning

Hi,
What is the proper way to access the boolean state whether the character is running (true or false)?
I have a script component on my main camera and I want it to be disabled if "isrunning" is false, and enabled if "isrunning" is true.
Thank you.

Comments

  • Would this be the Player character?

    You can read this with:

    AC.KickStarter.player.isRunning
    
  • Thank you! (Yes it's the player). <3

  • It's working well but now I need to detect the player's speed and it looks like GetTargetSpeed is private. Any idea how I could get the speed float ?
    Thanks again

  • You can read the GetMoveSpeed function:

    AC.KickStarter.player.GetMoveSpeed ();
    

    For a run-down of all available functions and variables for characters, see the Scripting Guide's entry on the Char script here.

  • Thank you a million times!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.