Modme Forums

How to activate a flag through a trigger?

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: TrueGamerCalls
I'm trying to make 4 switches to open up pack a punch. The player is supposed to activate the 4 switches in order, the 4th one will open up a door to pack a punch, My problem is I plan to use flags for this, but I don't know how to activate a flag through the script/trigger. I know how to do a "wait_till" with a flag though. How can I activate a flag through a script/trigger?

PS: If there is a better way to do what I'm look for, please let me know.


ModmeBot:

Reply By: Unity_N

flag = trig.script_flag;
level flag::set(flag);

I think that should do what you want


ModmeBot:

Reply By: TrueGamerCalls

Unity_N
flag = trig.script_flag; level flag::set(flag); I think that should do what you want

Thanks, it worked, 1+ win.

Also, do you know how to hide the "Not Available" message on a trigger?


ModmeBot:

Reply By: Unity_N

whatever = getent("yourtargetname", "targetname");
whatever setHintString("Message");
whatever setCursorHint("HINT_NOICON");