Page 1 of 1

SetProperty() on vehicle spawns

Posted: Thu Jan 28, 2010 2:18 pm
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.

Re: SetProperty() on vehicle spawns

Posted: Thu Jan 28, 2010 2:29 pm
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)