can i program the ai to ride on top of the tanks?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Unknown

can i program the ai to ride on top of the tanks?

Post by Unknown »

is it possible to program the ai to jump on top of tanks and then stand on the tanks as they move?
User avatar
swbf_lase
Major General
Major General
Posts: 647
Joined: Fri Jul 08, 2005 7:07 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: 127.0.0.1:465
Contact:

RE: can i program the ai to ride on top of the tanks?

Post by swbf_lase »

I was flipin thourgh the BF2 Scripting system doc and It looks like it is indeed possiable
Unknown

RE: can i program the ai to ride on top of the tanks?

Post by Unknown »

so could i program them to get on then get off in a certain area? (i want my troops to ride on the tanks like how the droids rode the snail tanks through the water and on to the beaches)
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: can i program the ai to ride on top of the tanks?

Post by [RDH]Zerted »

You could tell the AI to move to a tank, but you would have to get really creative to tell them to jump on it and stay there. Units can fall off a tank while it is moving if the units don't move with it. There is no easy way to do it, but that doesn't mean it can't be done.
Gunjak

RE: can i program the ai to ride on top of the tanks?

Post by Gunjak »

Nah they dont need to move on the tank as it moves, player gos with the tank :)
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

RE: can i program the ai to ride on top of the tanks?

Post by Rends »

I don´t think you can script this but you could create a tank with gunner postions (hardpoints).
Think about the skiff on the Mos eysley map or better the small skiff from SWBf1 dune sea.
User avatar
swbf_lase
Major General
Major General
Posts: 647
Joined: Fri Jul 08, 2005 7:07 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: 127.0.0.1:465
Contact:

RE: can i program the ai to ride on top of the tanks?

Post by swbf_lase »

Ya but he may need it so the enemy can get on too.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: can i program the ai to ride on top of the tanks?

Post by [RDH]Zerted »

You can script certain enemies to be friends with another team for awhile.
Unknown

RE: can i program the ai to ride on top of the tanks?

Post by Unknown »

the reason i need this is i need some way for most of my troops to get across the water on my map instead of most of them just standing around on the island.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: can i program the ai to ride on top of the tanks?

Post by [RDH]Zerted »

You can get it done, check out the elevator topic.

Create a boat object (a msh, not a vehicle object) with large sides (so AI can't jump out). When a unit entures the boat, use an animation to close the boat door. Now using animation, move the boat object to the other side of the water. Use another animation to lower the boat's door. The unit can now leave the boat. You can setup regions, to control when the boat is moved back and forth to pickup/drop off units.

This is just one of many ways to get troops across.

You could use flying transports...
Post Reply