Object when attacking - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Object when attacking (/Thread-Object-when-attacking) |
Object when attacking - Tastaran - 05-12-2017 11:32 PM Hi, If I attack somebody (clasically doubleclick on target with warmode), what is the object as my target ? Tried act,argo ... need it to my pvp functions. Cause my only solution is this : on=@Attack tag.lasttarget=<src> RE: Object when attacking - darksun84 - 05-13-2017 12:22 AM http://wiki.spherecommunity.net/index.php?title=How_Combat_Works RE: Object when attacking - bmanny - 05-13-2017 03:20 AM I've gotten a lot of help the last week so I'll try my best to pay it forward. Can you tell me more about what you are trying to do? The code below will function and might help point you in the direction you are trying to go. On=@HitTry say My target is <src.name> if ( <src.isplayer> ) say My target is also a player endif RE: Object when attacking - pointhz - 05-13-2017 05:23 AM as darksun84 posted, SRC is the victim RE: Object when attacking - bmanny - 05-13-2017 08:08 AM Then I'm confused about what you're looking for. Is the object of your target not the victim? |