Jump to content

How to determine if player is mounted or dismounted on a horse (?)


zdanman

Recommended Posts

The only events that seems to fire when using a horse is OnActivate when the player mounts and dismounts....

But I need to determine if they are mounted or dismounted....

I tried to set a Property to true/false each time OnActivate is called but that is buggy because OnActivate is sometimes called multiple times when dismounting....

 

Any ideas?

Edited by zdanman
Link to comment
Share on other sites

You can use states to avoid that from happening basically would look something like this.

 

auto State Mount
Event OnActivate()
	Debug.MessageBox("mounted")
	GoToState("riding")
endEvent
endState

State riding
Event OnActivate()
	Debug.Messagebox("dismount")
	GoToState("Mount")
endEvent
endState

 

This way OnActivate should only be called once while dismounting.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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