BullyWiiPlaza
Modder
- Messages
- 214
- Reaction score
- 174
- Points
- 818
How do you rain trucks? I tried two different scripts but both didn't work. The following script does nothing at all but it works on multiplayer using a different model obviously. Ideas?
@CabCon
Code:
truckRain()
{
level endon("game_ended");
while(true)
{
x = randomIntRange(-2000, 2000);
y = randomIntRange(-2000, 2000);
z = randomIntRange(1100, 1200);
spawnedTruck = spawn("script_model", (x, y, z));
spawnedTruck setModel("veh_t6_civ_movingtrk_cab_dead");
spawnedTruck physicsLaunch();
spawnedTruck thread deleteTruckOverTime();
wait 0.1;
}
}
deleteTruckOverTime()
{
wait 6.5;
self delete();
}