IsBeingRiddenBy - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Check if this actor is being ridden by another actor.

Syntax

bool Function IsBeingRiddenBy(Actor akActor) native

Parameters

  • akActor: The actor we'd like to see if they are riding on the actor this function is called on

Return Value

True if akActor is riding this actor, false if not

Examples

; Is the player riding the vertibird?
if Vertibird.IsBeingRiddenBy(Game.GetPlayer())
  Debug.Trace("The player is riding the vertibird!")
endIf

See Also