15 lines
400 B
Plaintext
15 lines
400 B
Plaintext
|
#include "NW_O2_CONINCLUDE"
|
||
|
void main()
|
||
|
{
|
||
|
// sets "NW_DO_ONCE" back to 0 if nSpawnDelay has passed
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_COM_HIT_DIVINE),OBJECT_SELF);
|
||
|
|
||
|
object oChair = OBJECT_SELF;
|
||
|
if(!GetIsObjectValid(GetSittingCreature(oChair)))
|
||
|
{
|
||
|
AssignCommand(GetLastUsedBy(), ActionSit(oChair));
|
||
|
SetLocalInt(GetLastUsedBy(),"issitting",1);
|
||
|
}
|
||
|
}
|
||
|
|