I'm working on an artillery script. The player will call a radio code and a shell will come down, hopefully on the enemy. A few questions:
1. How can I have the player select the artillery target? The way it is now, the artillery shell will detonate in a 100x100 meter square, randomly. The only solution I see is to have as many triggers as there are radio codes and then have the player choose one. But that idea sucks. Is it possible to move something (the trigger? a marker?) around? Preferably on the map.
2. It seems my script is not as random as I want it to be. The shells generally pop up in a certain part of the square. Is there some sort of randomize function I need to call?
3. This is for a multiplayer map, and there will, obviously, be two sides -- both playable. How can I make it impossible for one side to use the other side's artillery (radio)?
4. The way it is now, there is no real limit in rate of fire. The time limit fields (max, min, medium) of the trigger do not change this. Any ideas? Also, how do I make a short time delay before the shell explodes?
Thanks!