Stop units driving vehicles?
Posted: Fri Jul 15, 2016 3:56 am
I want to make the Super Battle Droid unable to get in vehicles and turrets, how would I do that?
Code: Select all
SetClassProperty("cis_inf_rifleman", "NoEnterVehicles", "1")Code: Select all
SetClassProperty("cis_hover_aat", "NoAIBoard", "1")There's also NoEnterVehicles, not sure what the difference is. Also, I didn't know you could restrict AI access from the script, that's cool. I always figured you'd set it up like NoAIBoard=1 in the vehicle's odf.AnthonyBF2 wrote:I remember this turret ODF parameter NoAIBoard, it might work with vehicles, I can't confirm. It would look like:
Code: Select all
SetClassProperty("cis_hover_aat", "NoAIBoard", "1")
Anything from a controllable ODF can be manipulated with SetClassProperty. This goes for turrets, vehicles, characters, ships and so on. I am just unsure if you can cross use ODF fucntions like NoAIBoard.Oceans14 wrote:There's also NoEnterVehicles, not sure what the difference is. Also, I didn't know you could restrict AI access from the script, that's cool. I always figured you'd set it up like NoAIBoard=1 in the vehicle's odf.AnthonyBF2 wrote:I remember this turret ODF parameter NoAIBoard, it might work with vehicles, I can't confirm. It would look like:
Code: Select all
SetClassProperty("cis_hover_aat", "NoAIBoard", "1")
Code: Select all
NoEnterVehicles = 1