Editors Depot - Mission Editing and Scripting > Arma2 - Editing/Scripting Multiplayer

C130 light script

(1/1)

OFP_f3d3:
Hi everyone, i need hel with this script as i am not really experienced in MP scripting.

this is the script:

LName = "#lightpoint" createVehicleLocal (getpos h1);
LName setLightAmbient [1,0.05,0.05];
LName setLightBrightness 0.03;
LName setLightColor [1,0.05,0.05];
LName lightAttachObject [c130, [0,0,0.5]];

those codes create a light that will be later attached to the plane, but the problem is that when the pilot executes the action, the pilot is the only one who is able to see it. I tried executing the action with other player and it worked just fine for them (executer is the only one who can see the light). When i executed this script with a TRIGGER activated by PRESENCE, everyone was able to see the lightthe way i wanted.
Idont know if someone knows whats going on and if he can help me.

Just one extra question: is there a way to turn that simple light in something more realistic like a light bulb inside the plane?

SORRY, I STARTED THIS TOPIC IN THE WRONG AREA, IT BELONG TO MP EDITING ARMA 2

Navigation

[0] Message Index

Go to full version