SphereCommunity
npc follow effect - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: npc follow effect (/Thread-npc-follow-effect)



npc follow effect - Vendetta - 04-30-2012 07:08 AM

why does it not work?

//works from player to npc
ON=@NPCActFight
EFFECT 0,i_trap_boulder,1,15,0,0b11

//sould work from npc to player but doesn't work
ON=@NPCActFight
SRC.EFFECT 0,i_trap_boulder,1,15,0,0b11


RE: npc follow effect - RanXerox - 04-30-2012 08:39 AM

EFFECT is hardcoded to the perspective of SRC... so to go the opposite direction, change the SRC:

TRYSRC <UID> EFFECT 0,i_trap_boulder,1,15,0,0b11


RE: npc follow effect - Vendetta - 04-30-2012 08:59 PM

of course i have already tryed that also but no result at all


RE: npc follow effect - darksun84 - 04-30-2012 10:39 PM

ah i had that problem too ,

you have to use trysrc in this way

ON=@NPCActFight
src.trysrc <uid> EFFECT 0,i_trap_boulder,1,15,0,0b11


RE: npc follow effect - Vendetta - 05-02-2012 05:17 AM

SUPER OK!

works

thanks