dreamdancer Posted January 6, 2018 Share Posted January 6, 2018 Curious if anyone knows any way to get zombies to treat a specific block as if it were a player. Have them specifically target and go after that block, preferably as an even higher priority than attacking players. I've poked at the AiTasks, and specifically set them to ApproachAndAttackTarget and SetNearestEntityAsTarget to the BlockType(in this instance it is a vending machine, and there are no other vending machines, so I just used BlockVendingMachine), and it did not work. In the presence of a player, they go after the player. In the absence of a player, they mill around. They seem perfectly happy to target and attack animals and npcs, but not blocks. I am curious if the AiTask system just isn't set up to register Block objects as valid targets, only Entity type objects? If so, I am curious if it is possible to make an object both an Entity and a Block, so it can support weight but also be attacked? Link to comment Share on other sites More sharing options...
xyth Posted January 6, 2018 Share Posted January 6, 2018 Only entity type objects without using C# code. Even then its tricky. Link to comment Share on other sites More sharing options...
dreamdancer Posted January 6, 2018 Author Share Posted January 6, 2018 Hmm. This seems to be what I am running into. Alternatively, is there a way to get an Entity to act like a block? Ie: Be structural, hold weight, show damage when a player attacks or hovers over with repair tool, etc? Link to comment Share on other sites More sharing options...
dreamdancer Posted January 7, 2018 Author Share Posted January 7, 2018 Solved that issue, simply have them take up the same place, with the block being structural air. But don't know how to spawn an entity. :/ It might be impossible. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.