more pages
hey guys ^^ im back again XD need ur help again pls ..
so i wanna make these nice stuff but this is too small so i wann it bigger
for example the original code:
[html]CreateAsc(depart,arivee,angle,time)
{
Asc=spawn("script_model",depart);
Asc setModel("com_plasticcase_friendly");
Asc.angles=angle;
Asc Solid();
Asc CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
Asc thread Escalator(depart,arivee,time);
}
Escalator(depart,arivee,time)
{
while(1)
{
if(self.state=="open")
{
self MoveTo(depart,time);
wait(time*1.5);
self.state="close";
continue;
}
if(self.state=="close")
{
self MoveTo(arivee,time);
wait(time*1.5);
self.state="open";
continue;
}
}
}
[/html]
so now i want to make bigger asc´s and i want it as this :
code:
CreateAsc(depart,arive,angle,size,height,time)
{
offset = (((size / 2) - 0.5) * -1);
for(j = 0; j < size; j++)
{
for(h = 1; h < height; h++)
{
Asc= spawn("script_model", open + (((0, 30, 0) * offset)*1.5) - ((55, 0, 0) * h));
Asc=spawn("script_model",depart);
Asc setModel("com_plasticcase_enemy");
Asc.angles=angle;
Asc Solid();
Asc CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
Asc thread Escalator(depart,arive,time);
}
}
}
Escalator(depart,arive,time)
{
while(1)
{
if(self.state=="open")
{
self MoveTo(depart,time);
wait(time*1.5);
self.state="close";
continue;
}
if(self.state=="close")
{
self MoveTo(arive,time);
wait(time*1.5);
self.state="open";
continue;
}
}
}
i know that this way is wrong so pls write me the correct code PLS