SourcePauseTool icon indicating copy to clipboard operation
SourcePauseTool copied to clipboard

Custom triggers

Open SmileyAG opened this issue 6 years ago • 3 comments

Is it possible to implement custom triggers like in BXT? This will make the comparison easier segments of various runners and also helps stop segments automatically when the trigger is touched

SmileyAG avatar Dec 24 '19 18:12 SmileyAG

How do the custom triggers in BXT work? Do you have to remake them every time you load a save? Is a trigger deleted after you enter it for the first time? What do custom triggers do exactly, do they fire console commands or something else?

I'm not very educated in custom triggers w/ BXT so I would like a quick summary on how they work.

lipsanen avatar Dec 28 '19 19:12 lipsanen

You add a trigger which runs a console command when the player enters it. It's not removed it disabled automatically, only when you do it manually.

YaLTeR avatar Dec 28 '19 19:12 YaLTeR

You can probably take these two files with little change https://github.com/YaLTeR/BunnymodXT/blob/master/BunnymodXT/custom_triggers.hpp

YaLTeR avatar Dec 28 '19 20:12 YaLTeR