Jump to content
Sign in to follow this  
dab_burns

Containers and lights

Recommended Posts

I have set a mission in the dock and i wanted to fill it with the containers but i cant find there name does anyone know.

Also I want to cut the lights in the docks by using an object like the mailbox as a wire box and an action to cut the wires. I have got this script so far but it doesnt seem to work. Its not my script.

Quote[/b] ]

On the "wire" object (init):

Code:

nil = this addAction ["Cut wire", "lightsOut.sqf"];

in lightsOut.sqf:

Code:

_subject = _this select 0; // Object the action is on.

_actor = _this select 1; // Person using the action.

_action = _this select 2; // Action used.

// Turn off the lights within 100m of the "wire" object.

_lights = nearestObjects [getPos _subject, ["StreetLamp"], 100];

{

_x switchLight "OFF";

} forEach _lights;

// No longer need the "cut" action.

_subject removeAction _action;

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
Sign in to follow this  

×