Flying green fireball from NPC to the attacked one - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Flying green fireball from NPC to the attacked one (/Thread-Flying-green-fireball-from-NPC-to-the-attacked-one) |
Flying green fireball from NPC to the attacked one - arka - 09-12-2016 01:44 AM I want an npc to fire this fireball effect at the one he is currently attacking. the problem is i dont know how to make that happen i also tried trysrc which makes it happen but in the wrong direction then the character who gets attacked shoots a fireball at the npc on=@NPCActFight EFFECT 0, 036d4, 10, 1, 1, 045, 2 RE: Flying green fireball from NPC to the attacked one - Shaklaban - 09-12-2016 08:31 AM on=@npcactfight src.green_fireball <uid> [function green_fireball] ref1=<argn1> trysrc <ref1> effect 0,i_fx_fireball,7,0,1,045,0 ref1.face <uid> ref1.anim 6 ref1.sound snd_SPELL_FIREBALL RE: Flying green fireball from NPC to the attacked one - arka - 09-13-2016 02:53 AM great thanks very much, i havent scripted in a while didnt get it myself |