Sandbird Posted January 20, 2014 Report Share Posted January 20, 2014 I am trying to attach a light to an object but although it works, only I can see it....other players cannot. I thought CreateVehicle is for global creation when CreateVehicleLocal is just for the client. So why isnt this working ...to be seen by everybody ? _LP = "#lightpoint" createVehicle (getPosATL myObject); _LP setLightColor [1,1,1]; _LP setLightBrightness 0.5; _LP setLightAmbient [1,0,0]; _LP lightAttachObject [myObject, [0, 0, 0]]; By the way, this is created by an addaction. Link to comment Share on other sites More sharing options...
0 Judge Bread Posted January 24, 2014 Report Share Posted January 24, 2014 Add the script to the server and run it on there. You will have to use a public event handler on the server to get it to run the script for you. Although the code should be global I believe as it isn't published correctly nobody else will see it (might be wrong). Link to comment Share on other sites More sharing options...
0 Sandbird Posted January 24, 2014 Author Report Share Posted January 24, 2014 Tried to do it with publicVariableServer but failed....script works, but light still doesnt show (now not even to me). I diag_logged the values and i see that they are correct....the light spawns...i just cant see it. Server execution is the only option....but i cant do it. No matter how many times i've tried....just not understanding it well i guess. Link to comment Share on other sites More sharing options...
Question
Sandbird
I am trying to attach a light to an object but although it works, only I can see it....other players cannot.
I thought CreateVehicle is for global creation when CreateVehicleLocal is just for the client.
So why isnt this working ...to be seen by everybody ?
By the way, this is created by an addaction.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now