Hello Plutonium, I am trying to create a script so I can spawn models with set origin.
My script DOES work but I have one issue... It only spawns one of the models and won't spawn any more than that. Any help would be appreciated!
makejumppad(origin, velocity)
{
self endon("disconnect");
dospawn = spawn("script_model", origin);
dospawn setModel("prop_suitcase_bomb");
for(;;)
{
if (distance(self getOrigin(), origin) <= 15)
{
self setVelocity(velocity);
}
wait 0.01;
}
}
jumppads()
{
if (getDvar("mapname") == "mp_courtyard_ss")
{
makejumppad((490.875, -2121, 134.676), (50, 0, 430));
makejumppad((-2957.64, 995.975, 994.125), (50, 0, 430));
}
}