Difference between revisions of "GetRider"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>QQuix (Added note about returning ref during mount/dismount animations) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | ||
Line 5: | Line 4: | ||
(rider:ref) reference.GetRider | (rider:ref) reference.GetRider | ||
Returns the NPC currently riding the calling horse. | Returns the NPC currently riding the calling horse. | ||
==Notes== | |||
*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== | |||
*[[IsRidingHorse]] | |||
*[[IsCreature]] | |||
*[[GetCreatureType]] | |||
[[Category: Functions]] | [[Category: Functions]] |
Latest revision as of 11:31, 5 August 2009
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.