generated from Jaysyn/ModuleTemplate
26 lines
752 B
Plaintext
26 lines
752 B
Plaintext
void main()
|
|
{
|
|
{
|
|
object oTarget = GetItemActivatedTarget();
|
|
location lTarget = GetItemActivatedTargetLocation();
|
|
object oPC = GetItemActivator();
|
|
effect Vfx1 = EffectVisualEffect(VFX_FNF_ELECTRIC_EXPLOSION);
|
|
effect Vfx2 = EffectVisualEffect(VFX_IMP_BREACH);
|
|
effect Vfx3 = EffectVisualEffect(VFX_IMP_DUST_EXPLOSION);
|
|
effect Vfx4 = EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_FIRE);
|
|
object oItem = GetItemPossessedBy(oPC, "steel");
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "steel")!= OBJECT_INVALID)
|
|
{
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
{
|
|
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "steelgolem", lTarget);
|
|
AddHenchman(oPC, oSpawn);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|