Jump to content

Checking if the player is on a horse


danshive

Recommended Posts

Does anyone know how to check to see if the player is currently riding a horse?

 

I'm working on making spells that can temporarily summon a horse, but if the horse vanishes while the player is still on it, the player basically winds up being stuck. I want to make it so the horse won't vanish if the player is still on it. The easiest way I can think to accomplish this is to check to see if the player is riding a horse, but even though there appears to be a console command for checking this, "IsRidingHorse", the CK doesn't seem to recognize it as a valid thing to check.

 

Here are the relevant code snippets as I've been trying to do this:

 

OBJECTREFERENCE Property myActor Auto

 

myActor = Game.GetPlayer()

IF(myActor.IsRidingHorse == FALSE)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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