Hello,
I want for my alarmscript that the script automatically can choose between 10 prototypes.
I search bit around and most likely i need use Math::rand()%x;
Can somebody give me little help?
My script right now:
Code
ActorList l = Game::GetActors(SPAWNPOINT[rand() % 1]);
spawnpoint = *l.GetActor(0);
Vehicle v = Game::CreateVehicle("mod:Prototypes/Vehicles/103 Amb/Boxer.e4p", "ambu2");
Vector spawnpos = spawnpoint.GetPosition();
Thank you.