Difference between revisions of "GetPlayerGrabbedRef - Game"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Lisselli (→Notes: fixed typo) |
||
(One intermediate revision by one other user not shown) | |||
Line 21: | Line 21: | ||
ObjectReference curObject = Game.GetPlayerGrabbedRef() | ObjectReference curObject = Game.GetPlayerGrabbedRef() | ||
</source> | </source> | ||
== Notes == | |||
* This is the function you should use if you're interested in getting the reference of an item held by a telekinesis spell. | |||
== See Also == | == See Also == | ||
*[[Game Script]] | *[[Game Script]] |
Latest revision as of 01:57, 19 March 2017
Member of: Game Script
Obtains the reference the player is currently grabbing.
Syntax[edit | edit source]
ObjectReference Function GetPlayerGrabbedRef() native global
Parameters[edit | edit source]
None
Return Value[edit | edit source]
The ObjectReference that the player is currently grabbing.
Examples[edit | edit source]
; Obtain the object the player is currently grabbing
ObjectReference curObject = Game.GetPlayerGrabbedRef()
Notes[edit | edit source]
- This is the function you should use if you're interested in getting the reference of an item held by a telekinesis spell.