Search found 3 matches
- Sun Oct 07, 2012 1:17 pm
- Forum: Modding
- Topic: Killing spawned monsters
- Replies: 10
- Views: 10113
Re: Killing spawned monsters
It doesn't work on a cube. function killCube() for i in entitiesAt(1,6,14) do if i.name == "cube" then damageTile(1,6,14,1,128,"physical",9001) end end end Perhaps these things are impossible to kill, though you can kill them when you press K on them. I'd like to know what comman...
- Sun Oct 07, 2012 5:26 am
- Forum: Modding
- Topic: Killing spawned monsters
- Replies: 10
- Views: 10113
Re: Killing spawned monsters
I guess it's just the cube. I tried it on a snail and it removed it just fine. Interestingly enough I set it's HP to 0 as well and I was unable to hit it, but it was still able to move and attack me. It's the same for negative numbers. I'd still like to figure out how to kill a cube (or any enemy) o...
- Sun Oct 07, 2012 3:43 am
- Forum: Modding
- Topic: Killing spawned monsters
- Replies: 10
- Views: 10113
Killing spawned monsters
I'm having a bit of trouble with killing (not destroying) a spawned monster. In my case a cube. I have it so the player steps on a hidden pressure plate spawning a cube around the corner. In the same block that contains the hidden pressure plate I have one more that's connected to a script_entity. I...