12.02.2019, 05:32
Quote:
Is every trailer a valid target? Does every trailer have that flag set? And if so, could you use the model ID instead? Regardless, you could add them to an iterator when creating them and use Iter_Random. The other code is either totally hard coded to IDs, which is a bad idea, or merely selects a model, not an instance.
|
It will be easier if I can add theese vehicles to an iterator but the problem is what I said before. I've only can add theese "Mission vehicles" to an iterator like MissionVehicles where it will be faster to loop throught. But I won't able to select a random id with conditions.