Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Enemy Delete Me?

A topic by Scruffy86 created 15 days ago Views: 84 Replies: 3
Viewing posts 1 to 2

Is there a script to delete an entity that's on the tile that called the script? Entity delete me doesn't work. Also I notice the opposite, enemy spawnatpos doesn't work either. Ex: entity spawnatpos BrickWall1Block 0 0 0. The intention for this one is to spawn an entity 0 tiles away from the player, and it does nothing.  In v 1.10.5 

Read manual already?

(1 edit)

Yes I did. 

"entity

entity delete [tileX] [tileY] [tileZ] - deletes entity in a certain tile. tileZ is floor number.

entity delete me - deletes entity that called a script (or decoration that player used).

entity move [tileX] [tileY] [tileZ] [offsetX] [offsetY] [offsetZ] - shifts entity.

entity spawnat [enemyname/decorationname/Key1-3/Hp1-3] [tileX] [tileY] [tileZ] - creates entity at tile coordinates (as shown in map editor).

entity spawnatpos [enemyname/decorationname/Key1-3/Hp1-3] [X] [Y] [Z] - creates entity at a certain number of units."

The entity delete me does not seem to work as intended. There are ways to delete an entity at specified coordinates per map, but I don't see a way to delete an entity relative to where the player clicked. The description of entity delete me makes it seem like it should be able to delete the entity that was "pressed."

Could you please show your script? Also, what kind of entity you want to delete?