Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Roy fokker on February 29, 2004, 03:52:50 pm

Title: waypoint problems
Post by: Roy fokker on February 29, 2004, 03:52:50 pm
hey i got this problem and it's happen once before but i have a group of cargo ships that i have set individual waypoints for however in game all the cargo ships go nutty a decide to to a spin or filp before they resume there path, they problem can be resolved by just naming the ship as if they loook like there in the same wing however i don't want this because i want ships to attack them as a group not having to put in there orders to attack one by one, anyone got a clue how to fix this?
Title: waypoint problems
Post by: Odyssey on February 29, 2004, 04:15:21 pm
[color=cc9900]As far as I'm aware, making ships larger than bombers into a wing isn't such a good idea. It screws up their pathing, as you've seen.

Unfortunately, you have to set the attack orders individually. That's not so difficult, anyway, it doesn't even take that long.[/color]
Title: waypoint problems
Post by: Roy fokker on February 29, 2004, 04:23:39 pm
thx but i think i've figured it out cause bombers are attack i just ai goal them to chase-any except all other fighters so they'll only attack the cargo ships problem solved
Title: waypoint problems
Post by: StratComm on February 29, 2004, 04:28:12 pm
The flipping and spinning is a glitch in the waypoint code, freighters and the like tend to overshoot the end of a path.  Try not to make the paths bend too sharply and that should help at least.  Another option is to use SEXPs to control when they change paths, so that when they are, say, 20m from the waypoint they stop going toward it and pick up the next one.  It'd have to be done carefully, but that's going to give you the cleanest results if you have the SEXPs to use.
Title: waypoint problems
Post by: Roy fokker on March 02, 2004, 06:41:35 pm
but the thing is there going in a stright line wierd maybe someone should see if it's possible to fix the coding for it?