Re: Players versus AI [message #319744 is a reply to message #318964] |
Fri, 29 February 2008 02:38   |
 |
Veyrdite
Messages: 1471 Registered: August 2006 Location: Australia, Sydney
Karma: 0
|
General (1 Star) |
|
|
To make the engies repair the MCT, make a daves arrow right against the front of the MCT with 1hp (or more) less than its total, then attach M03_Repair_Target to it, and attach M03_Repair to the engineer.
Probably not the exact script names, something along those lines.
EDIT:
Renhelp | M03_Engineer_Repair
Unit with attached script will attempt to repair objects with "M03_Engineer_Target" attached to them when they are damaged.
M03_Engineer_Target
Object that objects with "M03_Engineer_Repair" attached will attempt to repair.
|
WOL: Veyrdite Previously: Dthdealer ( a long time ago )
[Updated on: Fri, 29 February 2008 02:42] Report message to a moderator
|
|
|
|
|
|
Re: Players versus AI [message #319837 is a reply to message #319765] |
Fri, 29 February 2008 13:40   |
 |
The Elite Officer
Messages: 602 Registered: September 2007 Location: Chapel Hill, North Caroli...
Karma: 0
|
Colonel |
|
|
MSwindows wrote on Fri, 29 February 2008 08:34 | Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.
|
What he said.^^
The reason Uranus is tilted 90 degrees is because god got angry and kicked it over.....
|
|
|
Re: Players versus AI [message #319853 is a reply to message #319765] |
Fri, 29 February 2008 16:44   |
 |
Veyrdite
Messages: 1471 Registered: August 2006 Location: Australia, Sydney
Karma: 0
|
General (1 Star) |
|
|
MSwindows wrote on Sat, 01 March 2008 00:34 | Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.
|
Wha?
- If the daves arrow is lets say 1 hp below max, the engineer will always be repairing it.
- The daves arrow cannot be repaired or shot itself, as it does not collide with projectiles.
- ∴ if it is placed on the front of the mct, the engineer will end up repairing the mct.
WOL: Veyrdite Previously: Dthdealer ( a long time ago )
|
|
|
|
|
|
Re: Players versus AI [message #320154 is a reply to message #320149] |
Mon, 03 March 2008 11:31   |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
Jerad Gray wrote on Mon, 03 March 2008 11:00 |
Dthdealer wrote on Fri, 29 February 2008 16:44 |
MSwindows wrote on Sat, 01 March 2008 00:34 | Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.
|
Wha?
- If the daves arrow is lets say 1 hp below max, the engineer will always be repairing it.
- The daves arrow cannot be repaired or shot itself, as it does not collide with projectiles.
- ∴ if it is placed on the front of the mct, the engineer will end up repairing the mct.
|
Script the building controller to repair the arrow when the building reaches full health.
|
Another (more complex) way, would be to attach a script (e.g.) "zbl_Obelisk_Repair" to the OB. Have that script report damage to the dave's arrow and deal damage to the dave's arrow with script (e.g.) "zbl_Obelisk_Damage_Repair" and this arrow would have that "M03_Repair_Target" script attached to it. 
~Zack
|
|
|
|
Re: Players versus AI [message #320164 is a reply to message #320155] |
Mon, 03 March 2008 12:11  |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
MSwindows wrote on Mon, 03 March 2008 11:49 | Errr I have scripts 2.9 how do I do it with thoes?
|
Those don't exist. :v I used them as examples.
|
|
|