Hi everyone,
I'm trying to make a switch that will only trigger its event if a certain flag is true and will send the player a message if the flag is false. However my coding skills aren't that great and I have hit a wall trying to do it. If anyone could suggest a solution or write some code that would do this I would be very grateful.
Thanks,
kodiak
Code Request
- kodiak1504
- Mole Person
- Posts: 5
- Joined: Thu Sep 02, 2010 10:17 am
Code Request
Praise Jebus!!
Re: Code Request
Can't this be done via a simple "else" statement added to FlagTrigger.uc?
Re: Code Request
Can be done with no scripting at all.
Two flagtriggers, both set to check flags, not set them. One looks for YOURFLAG=false, the other for YOURFLAG=true.
The true one triggers your actual event, the false one triggers a specialevent actor that sends the player a message. Or you could use a datalink trigger if you like.
Two flagtriggers, both set to check flags, not set them. One looks for YOURFLAG=false, the other for YOURFLAG=true.
The true one triggers your actual event, the false one triggers a specialevent actor that sends the player a message. Or you could use a datalink trigger if you like.
Re: Code Request
That's a pretty good point. It's generally smart to see if a combination of triggers (or other actors) will work before scrambling to make a new one.