View Full Version : CMAN scripts targeting dead creatures
rx77310
11-07-2017, 11:35 PM
So I made a cman dirtkick script. It works great except for when there's a dead creature around with the same name. It will target the dead creature and say the critters dead instead of targeting the living critter that I want it to target.
Is there anything I can do about this?
Tgo01
11-07-2017, 11:43 PM
Use status.
So like target = GameObj.npcs.find{|i| i.name =~ /rat/ && i.status !~ /dead/
Whoops. Noticed this wasn't in the Lich folder. Not sure about wizard or SF scripts.
Ososis
11-08-2017, 01:03 AM
I add PUT LOOT at the start of my attack scripts to clear the bodies.
rx77310
11-08-2017, 04:58 PM
I add PUT LOOT at the start of my attack scripts to clear the bodies.
I think if i loot I won't be able to skin the creature?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.