Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

AI script

$
0
0
Hi there i.m trying to change this script so that it looks for the player and head in its generle direction but using the built in navigaition of unity 3d pro

so im wondering is anyone can help

here is the current script

Code (JavaScript):
  1.  
  2. var speed = 3.0;
  3. var rotationSpeed = 5.0;
  4. var shootRange = 15.0;
  5. var attackRange = 30.0;
  6. var shootAngle = 4.0;
  7. var dontComeCloserRange = 5.0;
  8. var delayShootTime = 0.35;
  9. var pickNextWaypointDistance = 2.0;
  10. var target : Transform;
  11.  
  12. private var lastShot =...
AI script

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>