Jump to content
  • 0

CreateVehicle is not seen by everyone


Sandbird

Question

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

2 answers to this question

Recommended Posts

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...