trupright -> Missing Unit causing error (2/8/2022 9:02:13 PM)
|
Hi Everyone, So I have a function which executes random direction changes for a variety of units. It's set to occur every 15 minutes. The problem I'm having is that as units are destroyed (as they tend to do in these games), the script errors out if a unit no longer exists. So I know this is probably a simple one-line item I need in the function to ask whether the ship exists. I'm still a relative newbie to thi. I call the groups, and then cycle through the units in the group, tasking them to change direction (group stays together). However, if a ship is missing, the script errors out. Any assistance would be welcome. Thanks!
|
|
|
|