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
Lantern script
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#7
RE: Lantern script

(10-21-2010, 08:33 PM)Pandemoneus Wrote:
OnStart()
{
AddEntityCollideCallback("Player", "AreaNameHere", "GruntLightEventOn", true, 1);
AddEntityCollideCallback("Player", "AreaNameHere", "GruntLightEventOff", true, 1);
}

void GruntLightEventOn(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0.1f, "GruntLightEvent");
}

void GruntLightEventOff(string &in asParent, string &in asChild, int alState)
{
RemoveTimer("GruntLightEvent");
}

void GruntLightEvent(string &in asTimer)
{
if(GetLanternActive() == true) {
    for(int i=1;i<13;i++) {
         SetEntityActive("servant_brute_" + i, true);
    }
}
else {
    for(int i=1;i<13;i++) {
         SetEntityActive("servant_brute_" + i, false);
    }
}

AddTimer("", 0.1f, "GruntLightEvent");
}

Something like that.

Couldnt get this to work. If someone could possibly try it themselves and post a solution? plz Sad
10-22-2010, 02:04 PM
Find


Messages In This Thread
Lantern script - by Hooumeri - 10-21-2010, 08:00 PM
RE: Lantern script - by Everlone - 10-21-2010, 08:26 PM
RE: Lantern script - by Pandemoneus - 10-21-2010, 08:33 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 02:04 PM
RE: Lantern script - by Everlone - 10-21-2010, 08:48 PM
RE: Lantern script - by Pandemoneus - 10-21-2010, 09:01 PM
RE: Lantern script - by Everlone - 10-21-2010, 09:15 PM
RE: Lantern script - by house - 10-22-2010, 03:12 PM
RE: Lantern script - by ThePaSch - 10-22-2010, 03:23 PM
RE: Lantern script - by Mofo - 10-22-2010, 03:34 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 03:59 PM
RE: Lantern script - by Mofo - 10-22-2010, 04:13 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 04:14 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 09:11 PM
RE: Lantern script - by ThePaSch - 10-22-2010, 09:42 PM
RE: Lantern script - by nofsky - 10-23-2010, 01:25 AM
RE: Lantern script - by Hooumeri - 10-23-2010, 02:45 PM
RE: Lantern script - by ThePaSch - 10-23-2010, 07:03 PM
RE: Lantern script - by Pandemoneus - 10-23-2010, 07:43 PM
RE: Lantern script - by Hooumeri - 10-23-2010, 09:09 PM



Users browsing this thread: 1 Guest(s)