Hi.
I make a script with spawn a box. When i run map cod2 have crash.
There is a script :
THX for help. InvictusPHP Code:
skrzynka()
{
precacheModel("xmodel/crate01");
skrzynka = spawn("script_model", (2206.32, 411.609, 54.6547));
skrzynka.angles = (2.21806, 151.797, -7.6227);
skrzynka setmodel("xmodel/crate01");
while(distance(self,skrzynka)<100) if(self usebuttonpressed())
{
self iprintlnbold("TEST");
}
}