olepup
03-08-2008, 02:54 AM
Howdy,
I've been playing around with scriptin' offline, and its been pretty cool. I've managed to create convoys that will leave from one field to another, depending on who owns which field. I wanted to make the trucks resupply the fields when they arrived, but I ran into some problems and was hoping I could get some advice.
What I tried to do was use if commands with a counter to determine what the trucks would rebuild if they reached the field. For instance, if the ammo dump was destroyed, it would be rebuilt and 1 would be subtracted from the counter. The problem is, some objects at the same field have the same name. I am unsure on how to get the script to analyze each one.
For instance, both the ammo dumps at F76 in the Tunasia map are labeled "F076AD001". The script will detect and rebuild the first one, but it can't see the second one.
Another question I had delt with the list of dotfiles that comes with the game. Among the other commands I saw some ".resupply" commands. Do these work?
I've been playing around with scriptin' offline, and its been pretty cool. I've managed to create convoys that will leave from one field to another, depending on who owns which field. I wanted to make the trucks resupply the fields when they arrived, but I ran into some problems and was hoping I could get some advice.
What I tried to do was use if commands with a counter to determine what the trucks would rebuild if they reached the field. For instance, if the ammo dump was destroyed, it would be rebuilt and 1 would be subtracted from the counter. The problem is, some objects at the same field have the same name. I am unsure on how to get the script to analyze each one.
For instance, both the ammo dumps at F76 in the Tunasia map are labeled "F076AD001". The script will detect and rebuild the first one, but it can't see the second one.
Another question I had delt with the list of dotfiles that comes with the game. Among the other commands I saw some ".resupply" commands. Do these work?