Selecting random vehicle with conditions
#9

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
Model id will doesn't matter becouse I'll set other type of flags for the missions (Vehicles that the player have to tow, stole, etc)

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)