![]() |
Negate a spawn by script - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Negate a spawn by script (/Thread-Negate-a-spawn-by-script) |
Negate a spawn by script - Gil Amarth - 04-14-2013 06:26 AM When you dclick a spawn you can deactive it (erasing all the npcs related to them) and with another dclick you can activate it again. But how de/activate them by script?, there is some command to negate a spawn automatcally? RE: Negate a spawn by script - Extreme - 04-20-2013 03:01 PM Did you tried use 'DCLICK' function? RE: Negate a spawn by script - Gil Amarth - 04-20-2013 05:32 PM Yes, but dclick function has a distance requisite. I tried with, can_i_flags on a c_man_gm body: CAN_I_DCIGNORELOS 04000 // when dclicked, ignore LOS checks CAN_I_DCIGNOREDIST 08000 // when dclicked, ignore distance checks But I didn´t worked. I don´t know why. Finally I workaround it, making a dupe of the spawn item, and removing the old one. So I could remove all the npcs related to this spawn. RE: Negate a spawn by script - admin phoenix - 04-20-2013 07:40 PM use the comand useitem USEITEM W Double clicks the item, with SRC as the source of the event, without checking for line of sight. RE: Negate a spawn by script - Gil Amarth - 04-20-2013 08:02 PM Yep, useitem works without checking los or distance. Thanks! ![]() |