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
The Shanus Offline
Member

Posts: 134
Threads: 15
Joined: Jun 2012
Reputation: 3
#3
RE: Multiple triggers

(06-19-2012, 08:56 PM)FastHunteR Wrote: the setEntitycallbackfunc for room100key is confusing me, but let's say it's there: Since you got 2 callbacks for OnPickup, I would go for this:
void Onpickup(same as above)
{
if(asEntity == "room100key")
{Whatever it does
}
else if(asEntity == "NOTETWO")
{//if it's a normal door:
SetSwingDoorLocked("room102", false, false);
//for the brute spawn part, it's easier to set him inactive in level editor and set him active when you need to:
SetEntityActive("brute1", true);
//The look at part:
StartPlayerLookAt("brute1", 2, 2, "");
//adjust the 2 2s as you need the speed, and add a timer for:
StopPlayerLookAt();
//after you turn. Just look how fast you want it and set the timer and speed how you want.
So does this go within the same void OnPickup, as above - or do I create a new one for this?

[Image: theshanusyoutube.jpg]
06-19-2012, 08:59 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)