SetProperty() on vehicle spawns

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
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

SetProperty() on vehicle spawns

Post by Teancum »

Normally I wouldn't even go here, but this is uber-annoying. I have three maps (the two Rhen Var and Yavin Arena from the DLC) that I can't physically edit. They're more detailed than their PC counterparts, so I don't want to replace them. Long story short I'm doing Classic Conquest and I have to find a way to get the vehicle spawns switched over to the correct SWBF1 names. For example - the IFTX loads for the Imperials on Yavin, but I need the ATST on Yavin for Classic. My thought was something below on ScriptPostLoad()
Hidden/Spoiler:
SetProperty("spawn_name", "ClassImpATK", "imp_walk_atst")
--Kill off and respawn for it to take effect
KillObject("spawn_name")
RespawnObject("spawn_name")
Before I go through all of that (I can't debug on the Xbox) I wanted to see if anyone else had successfully done it. The only other option is to build a duplicate level on top of the existing PC version, but only have the _classicConquest layer actually munge, then load both the Xbox and the new lvl together. The issue with that is that I'm assuming that the PC maps and the Xbox maps match up. They should, but I'd like to avoid it if at all possible since the DLC maps are modified from SWBF1.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: SetProperty() on vehicle spawns

Post by mswf »

Manderek did that succesfully with clone legions on BF0 maps of which the assets were lost. And, if I remember this correctly, he also managed to do this with vehicles. You would have to ask him of course. (still assuming the names of the DLC maps are the same as the converted SWBFI maps)
Post Reply