OnRelease

Syntax:

 begin OnRelease

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

NotesEdit

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

See AlsoEdit