23 lines
839 B
Plaintext
23 lines
839 B
Plaintext
////////////////////////////////////////////////////////////////////////////////
|
|
// Real Time Strategy - NWN - Mana Machine Maker
|
|
//==============================================================================
|
|
// By Deva Bryson Winblood. 03/10/2003
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
void fnCreate(location lL,object oO)
|
|
{
|
|
object oNew=CreateObject(OBJECT_TYPE_PLACEABLE,"rts_mana_machine",lL,TRUE);
|
|
DelayCommand(1.0,SetLocalObject(oNew,"oOwner",oO));
|
|
}
|
|
|
|
void main()
|
|
{
|
|
object oPC=GetItemActivator();
|
|
location lLoc=GetItemActivatedTargetLocation();
|
|
effect eBeam=EffectBeam(VFX_BEAM_LIGHTNING,oPC,BODY_NODE_HAND);
|
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eBeam,lLoc,5.0);
|
|
DelayCommand(4.0,fnCreate(lLoc,oPC));
|
|
DelayCommand(6.0,DestroyObject(GetItemActivated()));
|
|
}
|