Stop units driving vehicles?
Moderator: Moderators
-
SkinnyODST
- Lieutenant Colonel

- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Stop units driving vehicles?
I want to make the Super Battle Droid unable to get in vehicles and turrets, how would I do that?
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: Stop units driving vehicles?
Put the following line of code anywhere in your map script after ScriptPostLoad
Code: Select all
SetClassProperty("cis_inf_rifleman", "NoEnterVehicles", "1")- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Stop units driving vehicles?
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.
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: Stop units driving vehicles?
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")- Oceans14
- Command Sergeant Major

- Posts: 296
- Joined: Mon Apr 27, 2015 7:09 pm
- Projects :: Athenova Campaign
- Location: Planet 4546b
Re: Stop units driving vehicles?
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")
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: Stop units driving vehicles?
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")
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.
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: Stop units driving vehicles?
Code: Select all
NoEnterVehicles = 1