Difference between revisions of "OnPackageDone"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
(Moved to "Category: Blocktypes")
imported>Haama
m (Standardized)
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
   begin OnPackageDone PackageID
   begin OnPackageDone PackageID
  begin OnPackageEnd PackageID
'''Example:'''
'''Example:'''
   begin OnPackageDone FollowPlayerPackage  
   begin OnPackageDone FollowPlayerPackage  
Line 7: Line 8:


Note also that certain package types, such as wanders, sleeps and eats, cannot "complete", as they have no Done state, so OnPackageDone will never be triggered for these package types.  
Note also that certain package types, such as wanders, sleeps and eats, cannot "complete", as they have no Done state, so OnPackageDone will never be triggered for these package types.  
(NOTE: [[OnPackageEnd]] is interchangable with OnPackageDone)


==See Also==  
==See Also==  
[[OnPackageChange]]  
[[OnPackageChange]]  
[[Category: Blocktypes]]
[[Category: Blocktypes]]

Revision as of 17:37, 29 January 2009

Syntax:

 begin OnPackageDone PackageID
 begin OnPackageEnd PackageID

Example:

 begin OnPackageDone FollowPlayerPackage 

This block will be run once when the scripted actor completes the specified package. Note that a package can be completed due to failure (pathfinding, or inability to Find the specified number of generic objects, or the duration has expired), unless the Must Reach Location or Must Complete flags are checked on the package.

Note also that certain package types, such as wanders, sleeps and eats, cannot "complete", as they have no Done state, so OnPackageDone will never be triggered for these package types.

See Also

OnPackageChange