Monsters in a cage
Posted: Mon Nov 10, 2014 9:51 pm
I would like to put a couple of cages in an area with monsters on them. In order to keep them in there I need to put "prison_cage_door" or "prison_cage_door_breakable_1". However there is no connector to attack a script_entity to. If I just put a cage door I can not open it. If I put the breakable one, once it is broken it still "looks" closed but the monster can come out. I want to put a script to change the cage from "forest_cage_1" (which looks closed) to forest_cage_2 (which looks slightly open). In a script entity how do I check to see if the cage door took damage and/or was destroyed?