HoS_PRC8/_mod/_module/nss/rts_it_mag26.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

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()));
}