![]() |
On=@Destroy works on characters? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: On=@Destroy works on characters? (/Thread-On-Destroy-works-on-characters) |
On=@Destroy works on characters? - Gil Amarth - 11-14-2012 01:56 AM On=@Destroy works on characters? I can use it on my items, but I don´t know why on characters doesn´t works. Anyone have managed to use it? RE: On=@Destroy works on characters? - Mordaunt - 11-14-2012 07:13 AM Because you don't @destroy characters, assuming you are talking about when a player deletes one of their characters what you are looking for is: f_onchar_delete found in sphere_serv_triggers.scp RE: On=@Destroy works on characters? - Ben - 11-14-2012 10:52 AM Actually, @Destroy should work on Characters... RE: On=@Destroy works on characters? - Gil Amarth - 11-14-2012 05:25 PM When I say characters, I´m saying mostly npcs. I know players characters don´t delete in a normal way. I put this simple trigger under a chardef definition of a dog. On=@Destroy SERV.LOG Destroy trigger works! And nothing in my console. I understand that this triggers fires when a character is deleted from the world. And I use a .remove over them, and the trigger doesn´t fires. It´s for my follower control system, on=@death works fine, on=@petdesert too, and in theory on=@destroy would not be necessary in most circunstances, but for me it´s most secure to check it if anything strange happens. But this don´t work for me except for items. So I ask if anybody experience this. (Sphereserver last realease) Forget it, it works now. Maybe my sphere needed a reboot or anything else but today works perfectly. ![]() |