Forum

> > CS2D > Maps/Editor > Trigger_Random
ForenübersichtCS2D-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch Trigger_Random

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen Trigger_Random

TwTrooper
User Off Offline

Zitieren
Maybe it can be a dumb idea, but it may help a lot when we are making maps with a lot of random events.

Ok, I was making a map with some random events. I did it with LUA Script, but it's a bit tiring to make a script for each place we need one.

I think it might be a good idea to create a "Trigger_Random" that does something near that math.random does.

I've been thinking in kind of probability.
The entity will have 3 properties:

• Name
• Trigger
• Probability

> "Probability" should be like this: [ xx ]/100

XX = probability from zero to one hundred, which triggers a entity

So, just a silly example:

A guy runs into a move entity, and it triggers the Trigger_Random, then it has a probability to trigger an Env_NPC in front of him, something like this.

That's all.
Please comment.

Admin/Mod Kommentar

Closed because there is an idea thread (and I also think that this has been suggested already!) /DC

alt Re: Trigger_Random

Apfelbrot
User Off Offline

Zitieren
Sounds interesting and would make some things easy, you can do someting similar with explosions and npcs/breakables though.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtCS2D-ÜbersichtForenübersicht