Quote:
Originally posted by Chewbacca:
Try ActionCreate
See NWN Lexicon for more info:
http://www.reapers.org/nwn/reference/
DelayCommand only works for Action* functions.
You can also call user-defined events to fire, but thats a level of scripting I'm not at yet. [img]smile.gif[/img]
|
Oops, I mis-typed ActionWait only works for Action* functions, that is it wont "pause" the execution of a script. It will pause character actions like animations.
DelayCommand will work to conjure up a creature, here is an example from the NWN lexicon that is used to make skeletons out of a pile of bones in the OC. It is a heartbeat script, but if used with an invisble object that fires a destroy object on itself after it spawns its mob you can make it spawn once and the heartbeat script disappears with the invisble object.
Quote:
string sCreature = "NW_SKELWARR01";
location lLoc = GetLocation(OBJECT_SELF);
DelayCommand(0.3, ActionCreate(sCreature, lLoc));
/* ***
** The DelayCommand message above could be replaced with
** ActionDoCommand(ActionCreate(sCreature, lLoc));
*** */
|