Difference between revisions of "User talk:CraftySentinel"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>CraftySentinel
imported>CraftySentinel
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Activate - ObjectReference=
Hey crafty nice object bar [[User:Scrivener07|Scrivener07]] ([[User talk:Scrivener07|talk]]) 2013-09-07T22:36:23 (EDT)
[[Category:Scripting]]
[[Category:Papyrus]]
'''Member Function of:''' [[ObjectReference Script]]


Activates this item with the specified reference as the activator.


== Definition ==
Glad you like it ;)  
<source lang="papyrus">
bool Function Activate(ObjectReference akActivator, bool abDefaultProcessingOnly = false) native
</source>
<br />
=== Parameters ===
{| class="wikitable"
! Parameters || Description ||
|-
|<source lang="papyrus">
ObjectReference akActivator
</source>  || The ObjectReference to activate this Object.
|-
|<source lang="papyrus">
bool abDefaultProcessingOnly = false
</source>  ||If true, no OnActivate event will be sent to any scripts and the object will ignore the blocked flag.(Default Value: False)
|}


=== Return Value ===
-[[User:CraftySentinel|CraftySentinel]] ([[User talk:CraftySentinel|talk]]) 2013-10-02T02:22:28 (EDT)
:;Type - bool
::True if default activation processing was performed (and succeeded). Will return false if activation was blocked, or the activation failed for some other reason.
 
== Examples ==
<source lang="papyrus">
; Have the player 'activate' the door
NeatDoor.Activate(Game.GetPlayer())
</source>
<br>
<source lang="papyrus">
; Have the player 'activate' the door, bypassing any blocked activation and NOT sending an event to any script
NeatDoor.Activate(Game.GetPlayer(), true)
</source>
<br />
== Notes ==
:If the object reference has had activation processing blocked, this will still send the [[OnActivate - ObjectReference|OnActivate]] event to scripts attached to the object, but will ignore normal processing (i.e. picking up the object, opening the door, etc). Unless, of course, you have the abDefaultProcessingOnly parameter set to true, in which case ''no'' event is sent, and the block flag is ignored.
 
== See Also ==
{|class="mw-collapsible wikitable" align="right" font-size:85%;"
! colspan = "2"|
|-
! rowspan ="5"|[[ObjectReference Script| ObjectReference]]
|-
! [[Events Reference| Events]]
|-
|[[OnActivate - ObjectReference | OnActivate]], [[OnAttachedToCell - ObjectReference|OnAttachedToCell]], [[OnCellAttach - ObjectReference|OnCellAttach]], [[OnCellDetach - ObjectReference|OnCellDetach]], [[OnCellLoad - ObjectReference|OnCellLoad]], [[OnClose - ObjectReference|OnClose]], [[OnContainerChanged - ObjectReference|OnContainerChanged]],  [[OnDestructionStageChanged - ObjectReference|OnDestructionStageChanged]], [[OnDetachedFromCell - ObjectReference|OnDetachedFromCell]], [[OnEquipped - ObjectReference|OnEquipped]], [[OnGrab - ObjectReference|OnGrab]], [[OnHit - ObjectReference|OnHit]]
|-
![[Function Reference | Functions]]
|-
|[[BlockActivation - ObjectReference| BlockActivation]], [[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]], [[AddItem - ObjectReference|AddItem]], [[AddToMap - ObjectReference|AddToMap]], [[ApplyHavokImpulse - ObjectReference|ApplyHavokImpulse]], [[BlockActivation - ObjectReference|BlockActivation]], [[CalculateEncounterLevel - ObjectReference|CalculateEncounterLevel]],  [[CanFastTravelToMarker - ObjectReference|CanFastTravelToMarker]], [[ClearDestruction - ObjectReference|ClearDestruction]], [[CountLinkedRefChain - ObjectReference|CountLinkedRefChain]], [[CreateDetectionEvent - ObjectReference|CreateDetectionEvent]]
|-
 
|}

Latest revision as of 01:22, 2 October 2013

Hey crafty nice object bar Scrivener07 (talk) 2013-09-07T22:36:23 (EDT)


Glad you like it ;)

-CraftySentinel (talk) 2013-10-02T02:22:28 (EDT)