Difference between revisions of "OnGrab"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Kkuhlmann
 
imported>Zumbs
(added a note on OnGrab and containers)
 
Line 3: Line 3:


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.
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.
==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===
===See Also===

Latest revision as of 09:06, 19 September 2009

Syntax:

 begin OnGrab

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.

Notes[edit | edit source]

  • 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[edit | edit source]