Difference between revisions of "AddScriptPackage"

196 bytes added ,  06:05, 15 January 2011
m
no edit summary
imported>PoHa!
(Copied info from CS Wiki; removed incomplete tag)
imported>Ez0n3
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=='''Description'''==
{{Function
 
|CSWikiPage = AddScriptPackage
Add a script package to the calling actor.  This package takes precedence over all other packages until it is done.
|origin = GECK1
 
|summary = Add a script package to the calling actor.  This package takes precedence over all other packages until it is done.
=='''Syntax'''==
|name = AddScriptPackage
 
|returnType = void
  [''ActorRefID''.]AddScriptPackage ''PackageID''
  |referenceType = [ActorRefID]
 
|arguments =
=='''Examples'''==
  {{FunctionArgument
 
  |Name = PackageID
  AddScriptPackage GenericTravelOnActivate
  |Type = ref
  }}
  |example = AddScriptPackage GenericTravelOnActivate
}}


==Notes==
==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.
* 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 his package.
* 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 his package.


Line 19: Line 21:
*[[RemoveScriptPackage]]
*[[RemoveScriptPackage]]
*[[EvaluatePackage]]
*[[EvaluatePackage]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:AI Functions]]
[[Category:AI Functions]]
[[Category:AI Functions (GECK 1.1)]]
Anonymous user