A3Armory / A3A_A3Wasteland.Altis

A3Wasteland is a survival sandbox mission for Arma 3 where two teams and independent players fight for survival. Built in collaboration between GoT, TPG, KoS, 404Games, and others.
http://a3wasteland.com
GNU Affero General Public License v3.0
9 stars 6 forks source link

Resupply price #32

Closed Gigatek1 closed 7 years ago

Gigatek1 commented 7 years ago

Any idea what broke this? I'm at a loss

https://github.com/A3Armory/A3A_A3Wasteland.Altis/blob/dev/client/functions/fn_resupplyTruck.sqf#L53-L60

AgentRev commented 7 years ago

It never worked in the first place, you are comparing an object to an array of strings. Instead,

if ({_vehicle isKindOf _x} count _isHighPrice > 0) then
Gigatek1 commented 7 years ago

Yeah that's was thinking after I sent the issue (I needed to use count) but I swear it worked when I tested it. Maybe I was really stoned. 😃 Thanks Agent