malyczolg
3rd April 2014, 16:28
Hello !
when i have linkto model :
self linkto(self.dronemodel);
how can i move ? (WASD)
for(;;)
{
if(self useButtonPressed())
self.dronemodel moveto(self.dronemodel.origin + (0, 0, 8), 0.1);
else if(self meleeButtonPressed())
self.dronemodel moveto(self.dronemodel.origin + (0, 0, -8), 0.1);
self.dronemodel.angles = (int(self.angles[0]), int(self.angles[1]), 0);
wait 0.01;
}
when i have linkto model :
self linkto(self.dronemodel);
how can i move ? (WASD)
for(;;)
{
if(self useButtonPressed())
self.dronemodel moveto(self.dronemodel.origin + (0, 0, 8), 0.1);
else if(self meleeButtonPressed())
self.dronemodel moveto(self.dronemodel.origin + (0, 0, -8), 0.1);
self.dronemodel.angles = (int(self.angles[0]), int(self.angles[1]), 0);
wait 0.01;
}