Forum

> > CS2D > General > Triggers
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Triggers

15 replies
To the start Previous 1 Next To the start

old Triggers

Guest

Quote
is there a tutorial page or info page on triggers im not understanding it im makin a map and i want a secret admin place for weps that my friends can use but i dont know how to get a button that teleports them to a small island thx for the help

old Re: Triggers

Guest

Quote
I will do some time but not for now. And if you can make a teleport without triggers. But its useless because someone whos not your friend can look to map too.

old Re: Triggers

KimKat
GAME BANNED Off Offline

Quote
I doubt there's a tutorial out there yet... but I'll give you some info about it.
Triggers are easy, once you learn what they do.

You basicly bind things togheter and make some fun stuff with it. For example; Add a func_teleport in the map, be sure to link it to a destination. Name the teleport to anything you like, name it something like this "tele1" then add a trigger_use somewhere nearby close to a wall or something and pick a button that fits, then try to align it to fit. Name the trigger if you want but it's just optional. Now where you see "Trigger" enter the value of the entity of the teleport which is "tele1" now click done/apply. And you're done. Test it and you can only use the teleport if it's triggered.

old Re: Triggers

Guest

Quote
Hey, I want to make button.
When u push it, laser will come ground to 5 sec.
And then it disappear. And u need to push a button again.
So, how to tigger 2 things?
Like,
Tigger: Thing1, Thing2

Thing1 is the laser, and Thing2 is Delay to laser (disappear).

old Food for thought

KimKat
GAME BANNED Off Offline

Quote
The ingredients for that ... I guess is something like this:

Trigger_use, Trigger_delay, Env_sprite. I would add another thing... for example Env_sound for the laser, to make it sound tasty.

You need to add "thing2" into the Trigger_use trigger field and the name "thing1" I guess, and then add the name for the Trigger_delay the value should be "thing2" since it's triggered from "thing1". I don't really know how you mean... but it goes something like that. The delay is used to kind of "slow down" each trigger, and activate them when the time runs out. So you need to bind each trigger to another. Of course it might take some time to learn... but try to figure it out. You live and you learn!

old Re: Triggers

DC
Admin Off Offline

Quote
there are two methods two trigger multiple entities with one trigger:

1 - give the entities which have to be triggered the same name

2 - seperate the names of the entities with comma.
for example: "a, b, c" in the trigger field (without the ") will trigger all entities with the name a, all with the name b and all with the name c.

old Re: Triggers

Guest

Quote
how do i make a trigger to make it so when you capture a domination point the spawning there changes to your team and if the other team captures it back they get there spawn points there back and you lose yours there?

old Re: Triggers

Lee
Moderator Off Offline

Quote
It's pseudo possible. There are triggers that are team specific. This technique I'm going to give you would require at least a 4x4 area b4 the flag. Most conveniently if you make a container, and set the 2 triggers on "hallway" into the flag. Here's how

add 3 move triggers
trigger1 triggers name: triggerT, trigger1, trigger2 - set to T only.
trigger2 triggers name: triggerCT, trigger2, trigger1 - set to CT only.
trigger3 triggers name: triggerT, trigger3 - set to T only.

trigger3 has to come b4 both trigger1 and trigger2 so as to not confuse the players (it's better if they see it b4 than to keep on stepping on the T trigger) and to also name a few sprites triggerT or triggerCT (or an info_msg) to notify them that the spawn has changed.

add 2 spawn points next to the flag, one is infoT->triggerT, other is infoCT->triggerCT (note im abreviating here). add a start trigger with triggerT, triggerCT, trigger1 as the trigger parameter.

Explanation:
When the map loads, the start trigger automatically disables the triggerT spawn and the triggerCT spawn, as well as disabling the T move trigger, trigger 1. the trigger3 and trigger2 move triggers are still operational. The move trigger3 trigger serves the purpose of the first T hit activation. Basically, this allows you to alternate between the T and the CT without having to disable both and never being able to enable it again. Trigger 3 works by performing the function of trigger1 without enabling trigger 1, and after one use, it is gone. Leaving us with a disabled trigger 1, enabled T spawn, and disabled CT Spawn with enabled CT trigger. Using the above triggers, when either side go through the tunnel, their Spawn will be activated, etc.

old Re: Triggers

Guest

Quote
k i am just confused with: add a start trigger with triggerT, triggerCT, trigger1 as the trigger parameter.

old Re: Triggers

Lee
Moderator Off Offline

Quote
get a trigger_start entity, put it anywhere on the map, set it's trigger text box to the following values:
triggerT, triggerCT, trigger1

old Re: Triggers

MEh
User Off Offline

Quote
How can I make it so that when I use a wall, it teleports me to my spawn?

old Re: Triggers

Lee
Moderator Off Offline

Quote
MEh has written
How can I make it so that when I use a wall, it teleports me to my spawn?


You can't

old Re: Triggers

MEh
User Off Offline

Quote
leegao has written
MEh has written
How can I make it so that when I use a wall, it teleports me to my spawn?


You can't

So then is it possible to just make a teleporter work for one team?

old Re: Triggers

bezmolvie
User Off Offline

Quote
use a trigger move and change the propoties to the team you want. link it to a teleport (with the same team's spawn as a destination). You can also do this with other triggers too. (Why is Bloodshot on CS2d form? Bloodshot dosn't know )

old Re: Triggers

Lee
Moderator Off Offline

Quote
Ironically at least 3 different people excluding bloodshot have explained this same exact concept in over 5 different topics... Use the search guys
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview