Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple triggers
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#6
RE: Multiple triggers

Hehe Smile
I learned that way from the wake up script tutorial from Your Computer.
Let's go with a example:
Let's say you got 2 keys and you need functions to get them to open their doors. if you want the same thing to happen for both cases(like, for this example, both just to open the door, or both playing the same sound), you go for those variables you got in the callback syntax, like asEntity. This way you save a whole function just for the other key.
But, if you want those keys to do something differently, like 1 opening the door and the other spawning a brute, you go for if.
It's there to set a difference between those 2 keys, and you won't need a second function to take up a lot of space in the file.
Sorry, but I can't explain it that great Smile Hope it helped, and you could just see Your Computer's tutorial, may explain it better.

Edit: Or, in the case there is just 1 function avaible, to get both things under 1 function.
(This post was last modified: 06-19-2012, 09:16 PM by Cruzore.)
06-19-2012, 09:13 PM
Find


Messages In This Thread
Multiple triggers - by The Shanus - 06-19-2012, 08:02 PM
RE: Multiple triggers - by Cruzore - 06-19-2012, 08:56 PM
RE: Multiple triggers - by The Shanus - 06-19-2012, 08:59 PM
RE: Multiple triggers - by Cruzore - 06-19-2012, 09:01 PM
RE: Multiple triggers - by The Shanus - 06-19-2012, 09:05 PM
RE: Multiple triggers - by Cruzore - 06-19-2012, 09:13 PM
RE: Multiple triggers - by The Shanus - 06-19-2012, 09:38 PM
RE: Multiple triggers - by Cruzore - 06-19-2012, 09:41 PM
RE: Multiple triggers - by The Shanus - 06-19-2012, 09:44 PM
RE: Multiple triggers - by The Shanus - 06-19-2012, 10:56 PM
RE: Multiple triggers - by Your Computer - 06-19-2012, 11:17 PM
RE: Multiple triggers - by The Shanus - 06-19-2012, 11:22 PM
RE: Multiple triggers - by Your Computer - 06-20-2012, 12:00 AM
RE: Multiple triggers - by The Shanus - 06-20-2012, 12:18 AM
RE: Multiple triggers - by Your Computer - 06-20-2012, 01:35 AM
RE: Multiple triggers - by The Shanus - 06-20-2012, 09:35 AM
RE: Multiple triggers - by drunkmonk - 06-20-2012, 01:21 AM



Users browsing this thread: 1 Guest(s)