AddScriptPackage
From GECK
A function included in the GECK for Fallout 3.
Contents
Description
Add a script package to the calling actor. This package takes precedence over all other packages until it is done.
Syntax
[ActorRefID].AddScriptPackage PackageID:ref
Example
ActorRef.AddScriptPackage GenericTravelOnActivate
Notes
- An actor can have only one script package at a time. When calling the function twice on the same actor, the second package replaces the first one added.
- Unless the added package has some constraint on it ("must complete" and/or "must reach location"), it will be removed the next time the actor reevaluates their package.
- This applies only to that specific actor ref. Other actor refs that use the same base form are not affected, nor is the base form of the actor affected.
- The added script package is baked into the save, so you don't have to reapply it if the player saves and reloads while it is active
Bugs
- Adding a dialogue script package from a dialogue result script may not add the package to the calling actor.