Interesting Find: Automated vehicles

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

Captain_Mazda

Post by Captain_Mazda »

I'm thinking it could be perfect for Clone Wars ground and space maps. Imagine automated Homing Spider Droids, Hailfire Droids, Vultures, and more.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Sorry to be off-topic, and pardon my not using search, but how would you go about forcing a player into a vehicle as soon as he spawns?
xwingguy

Post by xwingguy »

EnterVehicle(character, vehicle) --this function has been tested and works perfectly.

tricky part is having a vehicle that's isolated. I tried creating a new vehicle using CreateEntity(), which works except for the fact that THE **** PILOT WEAPONS DON'T FUNCTION
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:

Post by [RDH]Zerted »

Can you post the code in which the pilot's weapons don't function?
xwingguy

Post by xwingguy »

CreateEntity("cis_stapspawn", GetPathPoint("cp4_stap_spawn", stapnode))

CreateEntityHover("cis_stapspawn", GetPathPoint("cp4_stap_spawn", stapnode))

I tried using walkers, flyers, and hovers. Every single one of them had weapons in the pilot section but the weapons didn't work regardless of the forcing of players into the vehicle.
At the same time I had perfectly working vehicles spawning from the standard spawn odf.

Psych0fred says that this happens b/c the parts of the vehicle are being put together in the incorrect order when I use the function.
Captain_Mazda

Post by Captain_Mazda »

xwingguy wrote:Psych0fred says that this happens b/c the parts of the vehicle are being put together in the incorrect order when I use the function.
Somehow I can see an AT-ST walking on its roof with twin-ion engines sticking out of the cockpit.
xwingguy

Post by xwingguy »

animations work fine. In fact the pilot weapons are the ONLY things that don't come out right. That's why it's so fustrating...so close yet not close enough.
Ergonomics

Post by Ergonomics »

hmmmm yeah i might give that a trye, sorry to interrupt u guys, but where should i type the pilottype = "self" line then? im certain thats all i need to do now, if it doesnt work again ill jus give up on it and make a ground map instead. ty for the help.
Post Reply