multiple tank paths.....
Posted: Sat Jul 26, 2003 2:02 am
two part question:
Q1. Can someone tell me if one can set up multiple waypoint paths (groups of waypoints), where a tank can be told to drive to a given
waypoint then change course on another set of waypoints.
For instance lets say I have five waypoints assigned to the tank (I know how to do this....and then after the tank reaches the last waypoint....come to a complete stop (treads stop moving etc.......no problem can do), then
lets say fire on a flak gun.
Then ...once the flak gun is destroyed, back up the tank to some designated waypoint on the FIRST set of waypoints it has traveled forward on..................then change paths and move to another area of the map, to do other things.
So ....if you where to look at my map, you would see a number of green paths for a given set of waypoints assigned to the given tank. These paths can touch at some point....have no problem with that BUT then diverge to another part of the map. Or put another way..... have a number of BRANCHED waypoint paths for the tank to maneuver around by various scripts, based on on current conditions within the mission.
Q2. What is the best way to script a tank so that once the turret stops moving...........where I tell the tank to "setaimtarget $some_object",
THEN and only THEN, fire at the target?
I know how to aim the tank turret at objects and then fire at them. That
is no problem.
But my problem is...for realism, I would like to have the tank only fire on the object once it's barrel is sighted directly on the center of the target.
So far, I have just been adding adequate amounts of time delay so that the turret will line up with target before I tell it to fire. Obviously this is a lousy way to do it.
Please do not respond with things like "well use cansee" because cansee
is based on a wide field of vision that apparently we cannot shave down to look less then a degree from center, etc..
Thanks for any help on these two questions.
Q1. Can someone tell me if one can set up multiple waypoint paths (groups of waypoints), where a tank can be told to drive to a given
waypoint then change course on another set of waypoints.
For instance lets say I have five waypoints assigned to the tank (I know how to do this....and then after the tank reaches the last waypoint....come to a complete stop (treads stop moving etc.......no problem can do), then
lets say fire on a flak gun.
Then ...once the flak gun is destroyed, back up the tank to some designated waypoint on the FIRST set of waypoints it has traveled forward on..................then change paths and move to another area of the map, to do other things.
So ....if you where to look at my map, you would see a number of green paths for a given set of waypoints assigned to the given tank. These paths can touch at some point....have no problem with that BUT then diverge to another part of the map. Or put another way..... have a number of BRANCHED waypoint paths for the tank to maneuver around by various scripts, based on on current conditions within the mission.
Q2. What is the best way to script a tank so that once the turret stops moving...........where I tell the tank to "setaimtarget $some_object",
THEN and only THEN, fire at the target?
I know how to aim the tank turret at objects and then fire at them. That
is no problem.
But my problem is...for realism, I would like to have the tank only fire on the object once it's barrel is sighted directly on the center of the target.
So far, I have just been adding adequate amounts of time delay so that the turret will line up with target before I tell it to fire. Obviously this is a lousy way to do it.
Please do not respond with things like "well use cansee" because cansee
is based on a wide field of vision that apparently we cannot shave down to look less then a degree from center, etc..
Thanks for any help on these two questions.