Difference between revisions of "BlockActivation - ObjectReference"
Jump to navigation
Jump to search
BlockActivation - ObjectReference (edit)
Revision as of 12:16, 2 December 2015
, 12:16, 2 December 2015→Notes
imported>Jlundin |
imported>Icecreamassassin (→Notes) |
||
Line 29: | Line 29: | ||
== Notes == | == Notes == | ||
If you block activation on a reference, the reference will no longer perform its "normal" activation processing. It won't be picked up, opened, etc. However, the script [[OnActivate - ObjectReference|OnActivate]] block will still run. | If you block activation on a reference, the reference will no longer perform its "normal" activation processing. It won't be picked up, opened, etc. However, the script [[OnActivate - ObjectReference|OnActivate]] block will still run but only on the same script which has the BlockActivation() function set, all other OnActivate() events in other scripts attached to the same reference will be ignored. | ||
Because of the way script events work, chances are that the object has already done (or ignored) its default activation processing by the time the script receives the event, so calling BlockActivation() on the object in the [[OnActivate - ObjectReference|OnActivate]] block will not affect the current activation. | Because of the way script events work, chances are that the object has already done (or ignored) its default activation processing by the time the script receives the event, so calling BlockActivation() on the object in the [[OnActivate - ObjectReference|OnActivate]] block will not affect the current activation. |