Jump to content
Sign in to follow this  
emantzipator

Any way to spawn an animal by placing a block?

Recommended Posts

Zombie have a "Territorial" AI-task(3) that i'd like to take advantage of. I'd like to place a block, which disappears and creates a static animal with no animations, acting as a land mine. The key is getting that block converted into a 'animal' class that fits in the 'Territorial' task.

 

Otherwise, any way of assigning some kind of 'animal' tag to a block itself might be sufficient.

 

I'd just think it'd be cool to set up a fake deer that they see, then attack, with a nice kaboom waiting inside.

 

Any help or suggestions are appreciated.

Share this post


Link to post
Share on other sites

Try using the cop class that explodes when damaged. have the game spawn a deer prefab with that class, and remove the wander and attack tasks. Alternatively, make a copy the landmine but swap in the deer prefab for the model. One of those might work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...