Jump to content
TheManGoesWild

Script to activate on map object lights?

Recommended Posts

Is there a scripting way that can activate lights that object(s) on a map have, example I have made flashing bollards infront of my stations, and currently you have to select them like a vehicle and use the flashing lights script (and only selectable for the host on MP).

But is there a way that I can have a person in game click a button (similar to the Mayberry mod gate buttons) to activate the lights, eg I name the objects "station_bollards" and then all objects named that will activate on/off when pressed.

Or preferably, if a trigger polygon could be used to turn them on/off when a vehicle is detected like the gates.

I saw some scripts have something that seems related, but I'm unsure how to script it;

            {
                GameObject *obj = l1.GetObject(i);
                if (!obj->IsSpecialLightEnabled())
                {
                    obj->EnableSpecialLights(true);
                }
            }

http://www.emergency-planet.com/uploads/monthly_2020_10/1320622087_Emergency4Screenshot2020_10.09-16_53_00_74.thumb.png.f33bd15370ba5b3c9056aac75c411cc8.png

Emergency 4 Screenshot 2020.10.09 - 16.53.00.74.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...