24 lines
536 B
Plaintext
24 lines
536 B
Plaintext
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.1
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Can go OnDamaged, OnDisturbed, OnSpellCastAt, creature heartbeats, etc.
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastHostileActor();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oCaster;
|
|
oCaster = OBJECT_SELF;
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_FIREBALL, oTarget, METAMAGIC_ANY, TRUE, 6, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
|
|
}
|