Page 1 of 1

Stop units driving vehicles?

Posted: Fri Jul 15, 2016 3:56 am
by SkinnyODST
I want to make the Super Battle Droid unable to get in vehicles and turrets, how would I do that?

Re: Stop units driving vehicles?

Posted: Fri Jul 15, 2016 5:02 am
by AnthonyBF2
Put the following line of code anywhere in your map script after ScriptPostLoad

Code: Select all

SetClassProperty("cis_inf_rifleman", "NoEnterVehicles", "1")

Re: Stop units driving vehicles?

Posted: Fri Jul 15, 2016 10:54 am
by Teancum
Does that affect the player? Dunno if SkinnyODST cares, I'm just curious. I assume it will, but sometimes devs sneak in workarounds for player-controlled characters.

Re: Stop units driving vehicles?

Posted: Fri Jul 15, 2016 12:48 pm
by AnthonyBF2
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")

Re: Stop units driving vehicles?

Posted: Fri Jul 15, 2016 1:09 pm
by Oceans14
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")
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.

Re: Stop units driving vehicles?

Posted: Fri Jul 15, 2016 1:12 pm
by AnthonyBF2
Oceans14 wrote:
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")
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.
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.

NoAIBoard is for turrets normally and does exactly what it sounds like. NoEnterVehicles works for any character you can control, and it works on humans + bots at the same time.

Re: Stop units driving vehicles?

Posted: Fri Jul 15, 2016 4:09 pm
by Kingpin

Code: Select all

NoEnterVehicles     	= 1
From Yoda's odf.