eagle4
15-06-2005, 02:08 AM
hi, i am making a space battle, and i started using pflow, but i have now moved onto crowds and a bit of maxscript, and i seem to be geting further. ok what i want to happen is when a ship of another team gets within a certain distance then this ship chasses after it. i can set it up between 2 deligates, but i cant set it up so that it checks the closest enemy to chase if there are more than just 1 on each team. also how can i check the speed of an object, because i also want to also stick in a simple check to see if the enemy's speed is less than its own speed, then chase, because this way i can change the outcome of the whole animation by just altering the speed of a few deligates. But i cant work out how to set a speed and how to check it using maxscript.
when the chaser gets close enough to the one getting chased i want him to shoot, so i figure i need to set up a particle system and get maxscript to check the distance and then somehow fire a particle from that ship, do i need a particle system for each ship? and if it hits then i want the ship that got hit to blow up and dissapear, blow up shouldnt be too hard, just use particles to do that, but getting it to dissapear and then tell the chasser to find another target is my next problem. does anyone have any ideas?
i am new to maxscript, i have used visual basic so i have a basic understanding of programming.
any tips would be appreciated, weather you solve my whole problem, or just 1 thing, it would be great.
eagle4
when the chaser gets close enough to the one getting chased i want him to shoot, so i figure i need to set up a particle system and get maxscript to check the distance and then somehow fire a particle from that ship, do i need a particle system for each ship? and if it hits then i want the ship that got hit to blow up and dissapear, blow up shouldnt be too hard, just use particles to do that, but getting it to dissapear and then tell the chasser to find another target is my next problem. does anyone have any ideas?
i am new to maxscript, i have used visual basic so i have a basic understanding of programming.
any tips would be appreciated, weather you solve my whole problem, or just 1 thing, it would be great.
eagle4