![]() |
Help to use Object as Source from the attack - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Help to use Object as Source from the attack (/Thread-Help-to-use-Object-as-Source-from-the-attack) |
Help to use Object as Source from the attack - pyrilin - 07-27-2017 10:57 AM Hi guys I've read the tutorial in the wiki and started my first project it should be a cannon, but i am in trouble to use the cannon as source. The shoot came from the player and not from the cannon ![]() PS:. Sorry about my english PHP Code: On=@Dclick RE: Help to use Object as Source from the attack - Coruja - 07-27-2017 12:11 PM "EFFECT 0" is a bit tricky because it always goes from SRC to TARGET, but in most cases the function is the target itself, which will revert the SRC <==> TARGET on animation so instead "ARGO.EFFECT 0" you can use "SRC.TRYSRC <ARGO> EFFECT 0" or "ARGO.TRYSRC <SRC> EFFECT 0" as workaround RE: Help to use Object as Source from the attack - pyrilin - 07-28-2017 02:21 AM (07-27-2017 12:11 PM)Coruja Wrote: "EFFECT 0" is a bit tricky because it always goes from SRC to TARGET, but in most cases the function is the target itself, which will revert the SRC <==> TARGET on animation Tyvm, but dont work ![]() argo.trysrc <src> effect 0,0e73,15,0,0 //if i use it, the ball came from me, and not from the cannon src.trysrc <argo> effect 0,0e73,15,0,0 //if i use it, the ball came from the final target (the victim of shoot) i also tried it: src.targ.effect 0,0e73,15,0,0 //if i use it, the ball came from me, and not from the cannon what I'd like to happen: https://media.giphy.com/media/3oeHLj0wPMiNJRrcju/giphy.gif what is happening: https://media.giphy.com/media/xUn3CjHQcSwMQtsbGU/giphy.gif RE: Help to use Object as Source from the attack - darksun84 - 07-28-2017 07:05 AM If i remember well trysrc doesn't work with items UID, you will get a sort of invalid uid error in the console. The only way to send an animation from an item is from the sendpacket function i think. |