View Single Post
Old 06-10-2003, 01:39 AM   #5
Chewbacca
Zartan
 

Join Date: July 18, 2001
Location: America, On The Beautiful Earth
Age: 52
Posts: 5,373
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));
*** */
__________________
Support Local Music and Record Stores!
Got Liberty?
Chewbacca is offline   Reply With Quote