Jump to content

Home

Trigger problems


Druid Bremen

Recommended Posts

Nooo! My triggers don't work! I'm making a trigger that the player uses to trigger a trap! Okay, here's the details of my triggers and func_doors ( the trap itself ).

*Note that the trap itself is simply a circle on the ground. When the trigger is tripped, the bottom left moves diagonal down left, bottom right moves diagonal down right, etc etc. And no, please don't point me to RichDiesal and say that I didn't search for a tutorial. That's the tutorial was following before my triggers went bang.

 

Trigger_Multiple

  • classname: trigger_multiple
  • target: t1
  • spawnflags: 7

 

Trapdoor (bottom left quarter)

  • classname: func_door
  • targetname: t1
  • angle: 225

 

Trapdoor (top left quarter)

  • classname: func_door
  • targetname: t1
  • angle: 135

 

Trapdoor (top right quarter)

  • classname: func_door
  • targetname: t1
  • angle: 45

 

Trapdoor (bottom right quarter)

  • classname: func_door
  • targetname: t1
  • angle: 315

Link to comment
Share on other sites

What went wrong with your trigger?

 

Anyway, do and check the following things: Insert a wait value for the trigger (even if it is using use_button flag; make it a short wait). You are using the facing flag, so check that the angles are where you want them to be. As you don't have any angles set, it's the default 0 (360), that is, straight to the right.

Link to comment
Share on other sites

I think you should add a "team" key to all door entities.

 

in ex:

 

# classname: func_door

# targetname: t1

# angle: 324

# team: trap_doors

 

# classname: func_door

# targetname: t1

# angle: 123

# team: trap_doors

 

Now it should work correctly if this was the problem.

Link to comment
Share on other sites

The problem is that you didn't describe the problem.

It just like "the game doesn't work", it may be because you're trying to run it in Linux or the computer is turned off;)

 

It doesn't work because:

 

- Only the one door moves when the trigger is activated (the team key should solve it)

- Nothing happens

- Something else.

 

OK. The trigger entity should have "spawnflags" == 1 or doesn't have it at all. The facing flag need to have an angle specified and doesn't work without it. I think this should help you.

Link to comment
Share on other sites

Originally posted by mslaf

The problem is that you didn't describe the problem.

It just like "the game doesn't work", it may be because you're trying to run it in Linux or the computer is turned off;)

 

It doesn't work because:

 

- Only the one door moves then the trigger is activated (the team key should solve it)

- Nothing happens

- Something else.

 

OK. The trigger entity should have "spawnflags" == 1 or doesn't have it at all. The facing flag need to have an angle specified and doesn't work without it. I think this should help you.

 

Well, its just like, I activate the trigger, and the doors act like I didn't at all. In other words, they didn't move.

Link to comment
Share on other sites

Hmm, no idea. The sample map works on my system.

It will not work only if you have the "facing" flat set without the "angle" key. I can advise you to remove the trigger and doors (move them back to the worldspawn) and make them again or copy from my map and check if it works. If it doesn't then try to create a simple test map to and check it again.

Link to comment
Share on other sites

Right, I'll clean up my base first. If it doesn't work, I'll reinstall everything.

 

Edit: I can't believe how stupid I was. When I cleaned up my base folder, I reinstalled GTK and compiled my map. Then I found out something; GTK took me to SP. Only then did I remember I had set my Project Settings to SP. I quickly changed to MP, recompiled, AND IT WORKED!!! Thanks for the help man!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...