Sign in to follow this  
zabo

Blitz3d AI need additional help!

Recommended Posts

ok so i posted a topic earlier asking how to program fps enemy intelligence and i got this code.------> For ai.TAI=each TAI If ai.seeplayer=True and ai.range < maxrange Then ai.shootplayer=true End If Next I have a few questions about this peice of code. How do you make the computer understand how to shoot the player and see the player? also how do you set the maxrange values?actually could you explain all of this? (sry my education in blitz3d doesnt go beyond 3d game programming for teens!(the book))I mean ai.shootplayer probably has fields and stuff so this code should be lots bigger so could you guys give me the whole peice of code and an explanation?

Share this post


Link to post
Share on other sites
Thank fully, blitz3d, offers a few functions that allow you to check if the enemy is in view.... But i feel that you're spending to much time on this forum! Go experiment and open up source code, and test different things.... Experimentation is the way to go, then you can ask....!

Good Luck

Share this post


Link to post
Share on other sites
Thank fully, blitz3d, offers a few functions that allow you to check if the enemy is in view.... But i feel that you're spending to much time on this forum! Go experiment and open up source code, and test different things.... Experimentation is the way to go, then you can ask....!

Good Luck

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