Activate (Procedure)

From the CreationKit Wiki
Jump to navigation Jump to search

Behavior

Description:
Actors walks to target and activates it.

The procedure completes:
When the actor activates the target.

Parameters

  • Target (Target): What object to activate (usually a SingleRef or a LinkedRef)
  • NumToActivate (Int): How many times to activate (??? or if given an object list, how many objects to activate ???)

                                   

Notes

  • If this package orders an actor to activate a door (to open it), the actor will not travel to the front of the door like one would expect. Instead, the actor will travel to the object's pivot point (the yellow axis you see on all reference pieces in the Render Window). This not only looks odd, but it presents a pathing problem if the door is positioned in a tight space as the door will swing in such a way as to trap the actor behind it.
  • If this package orders an actor to activate a furniture, then the furniture will be reserved for that actor, and other actors may not be able to use it. Reportedly, if the actor is killed while carrying out this procedure and before they actually complete it (i.e. before they use the furniture), the furniture will remain reserved and unusable. An acceptable workaround is to use a Travel package to bring your NPC within activation range of the Furniture, and then run an Activate package. This method may allow other NPCs to snatch the Furniture out from under you, but it prevents indefinite reservations if your NPC dies.
    • Known events that will release a dead NPC's reservation:
      • Enabling and disabling the reserving NPC
      • The player using the furniture themselves
      • The player using the Wait function

See Also