Jump to content
JGames Family

Light on multiplayer server (server execute)

Recommended Posts

I want to add a light with the following script:

_LP = "#lightpoint" createVehicle [6189.77,6916.42,5.74881]; 
_LP setLightColor [247,241,241];
_LP setLightBrightness 0.3;
_LP setLightAmbient [247,247,247];
_LP lightAttachObject [L1, [0, 0, 0]];

 

But when I server executes nothing will happen. I know the correct way would be a remote exec or so but as long as I know there isn't remote exec for create vehicle.. any help? Thx

Share this post


Link to post
Share on other sites

We share our solutions here. It's the entire point of the forum.

  • Like 1

Share this post


Link to post
Share on other sites

My fault @Harzach

_light = "#lightpoint" createVehicle [6189.77,6916.42,5.74881]; 
[_light,0.3] remoteExec ["setLightBrightness",0,_light];
[_light,[247,241,241]] remoteExec ["setLightColor",0,_light];
[_light,[247,247,247]] remoteExec ["setLightAmbient",0,_light];
[_light,[0, 0, 0]] remoteExec ["lightAttachObject",0,_light];
 

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×