Arma 3
102 beoordelingen
Flickering Lights
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Data Type: Composition
Meta: Dependency
Bestandsgrootte
Geplaatst op
Bijgewerkt op
105.346 KB
24 aug 2021 om 10:56
26 aug 2021 om 15:41
3 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Flickering Lights

Omschrijving
Description
A composition that contains all the lamps in the game modified so that they constantly flicker. All the lamps flicker differently - i.e. they have random flickering patterns.
If you'd like to edit the flickering of a lamp, right-click on it and press on Attributes. Afterwards, in the Init field, change the number (where X is) in the sleep (random X); command. The sleep command below the _this switchLight "OFF"; is for how long the lamp should be off and the sleep command below the _this switchLight "ON"; is for how long the lamp should be on.
If you don't want the lamps to flicker randomly, replace the (random X) after the sleep command with a number (the amount of seconds you want the lamp to be on or off).

Also, huge shout out to Hypoxic for helping me out with some of the scripting for the lamps and helping me optimize the code so that it's multi-player compatible.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★

If you enjoyed this composition, please don't hesitate to rate it up and add it to your favorites.



I'd also love to hear what you think about it down in the comments.
Thanks for subscribing! :)

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★

[www.buymeacoffee.com]
Populaire discussies Alles weergeven (1)
6
23 okt 2021 om 18:04
BELANGRIJK: Bug Reports & Suggestions
STARMAN
26 opmerkingen
M. Cross 22 okt 2023 om 6:01 
It works and It's MP compatible. Big thumbs up from me
Blackbird Ater 19 sep 2023 om 9:35 
No problem. Thanks for getting back to me :)
STARMAN  [auteur] 6 sep 2023 om 11:33 
@Blackbird Ater - I'm glad you're enjoying the composition. :)

As for the questions:
1. I really have no idea. I was a beginner in Arma 3 scripting when I made this, so I had no idea back then. I also have no idea right now, because I gave up on Arma 3 scripting shortly after making this composition.
2. Yes. I think... I again have no idea. :D

The composition was made two years ago and I barely remember how Arma 3 scripting works right now and as I mentioned, I have also given up on it, so yeah... I'm afraid I can't really help you with the questions. However, I do suggest joining (if you haven't already) the official Arma 3 Discord server and I am more than 100% sure that someone there will have the answers to your questions. There's a dedicated scripting channel and what not.
Blackbird Ater 6 sep 2023 om 9:41 
Thank you for posting this composition! It is awesome!! Really pumped to use it this week in our op!

Would you mind clarifying two things for me? I am a bit of a newbie with scripting so I apologize if I am not making sense.

First, why do you run this in the init, instead of calling an SQF via an execVM? I could be mistaken, but I thought when it comes to scripts, especially loops, it is better to use an execVM. Again, I barely know what I am talking about so I could way off.

Secondly, in the code you have:

l# = this (e.g. the Airport Lamp is l1 = this, the next one is l2 = this

Is l# just giving the lamp a variable name? Thanks again :)
STARMAN  [auteur] 11 apr 2023 om 18:55 
@flycatNZ - It's not a scenario, it's a composition.
flycatNZ 11 apr 2023 om 14:02 
Can't seem to find the scenario to play in single-player. And its not there in my profile under save/steam ¯\_(ツ)_/¯
Colgate Toothpaste 21 mei 2022 om 19:00 
hey i'm not seeing this comp in the menu man
JusTaGamer 8 mei 2022 om 8:29 
i have loaded your Comp, but there is nothig flickering in my Singleplayer and there is standing nothing in the init field of Lamps. What i must do ?
NFC3SPECTRO 1911 TTV 30 okt 2021 om 16:00 
do you hava a script for giroflex light?
BridgeBurn100 17 okt 2021 om 17:21 
So I am having a problem with the flickering when its put on a server. I added the lights in on a template and have tried different numbers which work when testing in the editor. When I put the template up on my units server I only see the briefest flash from the lights. Any idea on why it would be so different from the editor to the server?