PDA

View Full Version : linkto



malyczolg
3rd April 2014, 15: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;
}

IzNoGoD
3rd April 2014, 16:47
libcod
10char

malyczolg
3rd April 2014, 18:03
how to do it without libcod?

IzNoGoD
3rd April 2014, 20:04
You might get it done with an awful lot of ugly hackery, but no one has managed to do that yet afaik (will fuck up player binds too), so you better try to get a libcod host.