OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: ArMaTeC on 18 Jul 2007, 03:43:10
-
Hi all im creating an MP football addon
Please note this is the mission only not addon
Code works in SP and 95% mp (bug reported below)
Small video showing ball in action
http://www.youtube.com/v/LNoX-vdQGsY
*****
*BUG*
*****
Current Error in mission scirpts only in MP though take a look maybe soem one has a fix for this
http://www.youtube.com/watch?v=e9lltkmevGg
Removed mission as its getting finalized
-
Let your "ball.sqf" run on all clients (from init.sqf) and see what happens.(Cant test myself)
Also "player" command on a serverscript is not working on a dedi.(It does work when u host yourself,then u are server and client)
-
Updated top post maybe soem one knows of a fix for this i belive its todo with setVelocity but maybe just an error file to look at is kick.sqf
-
SetVelocity used to be (and I presume still is) a local command. How it behaves on the ball will depend on which machine the ball is local to(the server?). If you call setVelocity on a non-local vehicle, the machine that calls the command will see the vehicle respond to the command, but only until the next network synch, at which point it will return to whatever position it has on every other machine. I presume this is still true since 1.08.
Is the ball a vehicle class object or a static object. Static objects never used to respond to setVelocity, pre 1.08.
-
Would running the code on the server only fix this issue?
i used class type thing for the ball it must be the network synch problem as thats the only reason it could be is there any way to work around this?
-
ok bug fixed by sending data from client to server