GetPlayerGrabbedRef - Game

Member of: Game Script

Obtains the reference the player is currently grabbing.

SyntaxEdit

ObjectReference Function GetPlayerGrabbedRef() native global

ParametersEdit

None

Return ValueEdit

The ObjectReference that the player is currently grabbing.

ExamplesEdit

; Obtain the object the player is currently grabbing
ObjectReference curObject = Game.GetPlayerGrabbedRef()

NotesEdit

  • This is the function you should use if you're interested in getting the reference of an item held by a telekinesis spell.

See AlsoEdit