I just put the following code into a file named "LightsOn.sqf" in my scripts folder:I then put this into my init.sqf:Code:_objHouse = nearestObjects [Centre, ["House"], 1500]; { for "_i" from 1 to 5 do { _x animate [format ["Lights_%1",_i],1]; }; } forEach _objHouse;and it workedCode:execVM "Scripts\LightsOn.sqf";![]()
HOME
Reply With Quote


