OnGrab

From GECK
Jump to: navigation, search

This block will be run once when the scripted object is "grabbed" by the player (picked up using the "grab" key). This block is symmetrical with OnRelease -- for every call to OnGrab, a corresponding call to OnRelease will be made when the object is released.

Syntax

 begin OnGrab

Notes

  • This block will run on a container if it is grabbed. The container will be released in the same frame, causing the OnRelease block to be run.

See Also