After, Working on GZ's AI and getting the new salvage general* and his crate drop. I made custom Drop Crates. The are "live" and even selectable (invincible armor) and can only be picked up by Vehicles -cliff_Jumper (Can I Just do required weapons_Salvager?). But it is apparent; The AI needs, to be made, to pick them up. The crates are considered owned by the team that droped them. As indicated by the color and player name on the "name tag". Not sure if this will inhibit the AI from picking them up. If so, how could I drop neutral objects?
*replaces stealth general who has been merged with normal GLA. EA's single player missions signifiy the merging nicely
AI Salvage Crate Pickup
Started by Just west, Dec 26 2004 05:43 PM
1 reply to this topic
#1
Posted 26 December 2004 - 05:43 PM
#2
Posted 28 December 2004 - 03:59 PM
This is a tricky one. The first apparent thing would be to use the
[Team][Move]Move team towards the nearest object of a specific type
script for some teams, though for some reason I doubt it will work.
If that fails, you could try something very experimental. Give the vehicles that can pick up the crates the CommandbuttonHuntUpdate, and define a new weapon for them - one that does no damage and has a range of something close to 0.
You could then order the team with those vehicles to hunt the crates with the ability, with
[Team][Hunt]Set to hunt using commandbutton ability
and tell the team to use a new attack priority set which has all the usual objects defined with the standard priority, but let the crate have a very very high priority. Use this script to define the new priority set for the team:
[AttackPrioritySet][ApplySet]Apply a team's attack priority set
This is advanced but may just work.
[Team][Move]Move team towards the nearest object of a specific type
script for some teams, though for some reason I doubt it will work.
If that fails, you could try something very experimental. Give the vehicles that can pick up the crates the CommandbuttonHuntUpdate, and define a new weapon for them - one that does no damage and has a range of something close to 0.
You could then order the team with those vehicles to hunt the crates with the ability, with
[Team][Hunt]Set to hunt using commandbutton ability
and tell the team to use a new attack priority set which has all the usual objects defined with the standard priority, but let the crate have a very very high priority. Use this script to define the new priority set for the team:
[AttackPrioritySet][ApplySet]Apply a team's attack priority set
This is advanced but may just work.
Edited by Mithril, 28 December 2004 - 04:00 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users