Home   Help Search Login Register  

Author Topic: C130 light script  (Read 2202 times)

0 Members and 1 Guest are viewing this topic.

Offline OFP_f3d3

  • Former Staff
  • ****
  • Fraud is the ready minister of injustice.
C130 light script
« on: 03 Mar 2013, 17:51:29 »
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
« Last Edit: 03 Mar 2013, 18:07:07 by OFP_f3d3 »
Nothing in the world is as certain as death.