Hi,
I've been working on this multiplayer game, and it's not quite working the way I want it to.
The player entities update their position on the server and on all clients without problems. The orientation (rotation) also works perfectly.
Now, I was trying to send a range of entity "skills" to the server, and all clients. This works fine as long as all clients are in the same local area network that the server is in, but it does not work when players from a different LAN connect.
Summary: send_skill(); only works in a LAN game. Here's my question: How can I send the data to the server anyways?
In case it helps, here is the code that is sending the skills:
vec_set(temp,wep.skill2);
vec_scale(temp,random_id);
vec_set(pl_server.skill37,wep.x);
vec_set(pl_server.skill40,temp);
pl_server.skill36 += 1;
send_skill(pl_server.skill37,SEND_VEC);
send_skill(pl_server.skill40,SEND_VEC);
send_skill(pl_server.skill36,0);
pl_server is the entity that is on the server (And yes, I am sure it exists when this code chunk is being executed)
wep is a local entity.
If anyone could help me out here, that would be nice.