Difference between revisions of "GetPlayerGrabbedRef - Game"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Terra Nova2 |
||
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 interesting in getting the reference of an item held by a telekinesis spell. | |||
== See Also == | == See Also == | ||
*[[Game Script]] | *[[Game Script]] |
Revision as of 17:29, 7 March 2015
Member of: Game Script
Obtains the reference the player is currently grabbing.
Syntax
ObjectReference Function GetPlayerGrabbedRef() native global
Parameters
None
Return Value
The ObjectReference that the player is currently grabbing.
Examples
; Obtain the object the player is currently grabbing
ObjectReference curObject = Game.GetPlayerGrabbedRef()
Notes
- This is the function you should use if you're interesting in getting the reference of an item held by a telekinesis spell.