GetRider

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

(rider:ref) reference.GetRider

Returns the NPC currently riding the calling horse.

Notes[edit | edit source]

  • Returns a reference to an NPC from the moment the NPC 'decides' to mount and start walking toward the horse.
  • When the PC mounts the horse, GetRider returns the Player's reference from the beginning of the mount animation to the end of the dismount animation.
  • Use IsRidingHorse to determine if the PC/NPC is actually mounted.

See Also[edit | edit source]