Droidekas and Grenades

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
CodaRez
Field Commander
Field Commander
Posts: 940
Joined: Mon May 25, 2009 6:49 am
Projects :: I would like one.....
Location: Ride around the world! And I won't give you anything :P

Droidekas and Grenades

Post by CodaRez »

How would you stop units from throwing grenades at droidekas?

I bet its in the .odf, classlabel? when I changed that to soldier my map crashed.

Is tehre another way? or are they doomed to be grenade spammed forever :? :shock:
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Droidekas and Grenades

Post by AQT »

Since the Droideka is a type of vehicle, just add the following lines to your grenade's ODF:
Hidden/Spoiler:
TargetVehicle = "0"

AITargetVehicle = "0"
User avatar
CodaRez
Field Commander
Field Commander
Posts: 940
Joined: Mon May 25, 2009 6:49 am
Projects :: I would like one.....
Location: Ride around the world! And I won't give you anything :P

Re: Droidekas and Grenades

Post by CodaRez »

.....what if vehicles are in the map
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Droidekas and Grenades

Post by AQT »

My mistake, the Target and AITarget lines actually pertain to the HealthType. Use these lines:
Hidden/Spoiler:
TargetDroid = "0"

AITargetDroid = "0"
But that will effect all the other droids. You can change the Droideka's HealthType to animal and use these lines instead in your grenade's ODF:
Hidden/Spoiler:
TargetAnimal = "0"

AITargetAnimal = "0"
Post Reply