2
« on: 28-07-2020, 15:07:36 »
There's no global way to do it (afaik), it's set per vehicle in each map.
You also need to add ObjectTemplate.dontClearTeamOnExit 1 to all of the PCO's (seats) on each vehicle. Otherwise the vehicle will turn grey whenever someone leaves it. And if the opposite team gets in it, the map will crash. This can be done in tmp.con for example. Note that this will likely fuck up things if you wanna play the map online later. Could be possible to add this in the actual gameplayobjects.con, but haven't tested.
Example code (this is for one vehicle):
ObjectTemplate.activeSafe PlayerControlObject sdkfz251_1
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject sdkfz251_1_FrontMG
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject sdkfz251_1_RearMG
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject sdkfz251_1_Codriver
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject sdkfz251_1_Passenger1
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject sdkfz251_1_Passenger2
ObjectTemplate.dontClearTeamOnExit 1