i presume the my pointer isn't the one you expect.

Code:
ENTITY* entPlayer;

function getInput () { // wsad control on client and server separately

if (connection == 2) entPlayer = clPlayer;
if (connection == 3) entPlayer = svPlayer;

while (1) {
if (key_w == 1) entPlayer.skill1 = 5;
if (key_s == 1) entPlayer.skill1 = -5;
if (key_a == 1) entPlayer.skill2 = 5;
if (key_d == 1) entPlayer.skill2 = -5;
if (!key_any) {
entPlayer.skill1 = 0;
entPlayer.skill2 = 0;
}
}




Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files