Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- update = function()
- {
- if (willLasersHit())
- {
- fireLasers();
- }
- if (willMissilesHit())
- {
- fireMissiles();
- }
- closestBot = findClosestEnemyBot();
- if (exists(closestBot))
- {
- if (canMoveTo(closestBot))
- {
- pursue(closestBot);
- }
- }
- else
- {
- if(canMove())
- {
- move();
- }
- }
- if(canCloak())
- {
- cloak();
- }
- if(canMove())
- {
- move();
- }
- if(canShield())
- {
- shield();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement