Code: Select all
UnitType = "Scout"Moderator: Moderators

Code: Select all
UnitType = "Scout"
Actually that just defines AI behavior. In any event, I was able to give a sniper a 'medal 1' value and it unlocked the award weapon at 12 kills, so I must be doing something wrong with the trooper.Fiodis wrote:Perhaps. Maybe you could experiment with changing this line:That being for the sniper. Add that and see if the award changes to being unlocked after a few headshots.Code: Select all
UnitType = "Scout"


Yes, I was aware of that (and I didn't forget).MercuryNoodles wrote:I'd neglected to mention ScoresForMedalsType, because I didn't want to throw a lot of speculation around, but I suspected it was something along the lines of what AQT posted earlier, which led me to another thought. My memory may be faulty, but I recall that if you use a weapon set to score for a certain medal with a given unit, you must include the weapon odf that's set to unlock with that award in that unit's odf. Otherwise, the game unlocks it anyway, and when you switch weapons it causes a crash.
I'm having some trouble following what you're doing here, though. Giving both weapons a value of 1 should lock the normal weapon and unlock the award weapon at 12 kills, so what's wrong exactly?