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
Having a slight problem...
TrollingForever Offline
Junior Member

Posts: 9
Threads: 2
Joined: Apr 2013
Reputation: 0
#8
RE: Having a slight problem...

I`m sorry to say, but now I got even more confused xD This is what I wrote in the .hps file:

void TurnRed2(string &in asEntity)

{
    SetEntityActive("special_altar_static_knife_4", false);
    SetEntityActive("special_altar_static_knife_5", true);
    GivePlayerDamage(5.0f, "BloodSplat", false, false);
    AddLocalVarInt("OrbCheck",1);
    OrbCheckFunction();
}

void TurnRed(string &in asEntity)

{
    SetEntityActive("special_altar_static_knife_2", false);
    SetEntityActive("special_altar_static_knife_3", true);
    GivePlayerDamage(5.0f, "BloodSplat", false, false);
    AddLocalVarInt("OrbCheck",1);
    OrbCheckFunction();
}

void OrbCheckFunction()

{
    if(GetLocalVarInt("OrbCheck") == 2)
{
SetEntityActve("orb_pedestal_1",true);
SetEntityActve("orb_pedistal_tar_1",true);
SetEntityActve("orb_1",true);
}

}

I`m hoping I did this correctly (I haven`t tryed it out yet).

EDIT: When I said I added the Callbacks in the Map Editor, I meant for the PlayerInteractCallback in Entity tab.
(This post was last modified: 04-23-2013, 05:43 PM by TrollingForever.)
04-23-2013, 05:37 PM
Website Find


Messages In This Thread
Having a slight problem... - by TrollingForever - 04-23-2013, 04:26 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 04:54 PM
RE: Having a slight problem... - by immaturegames - 04-23-2013, 05:13 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:16 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:26 PM
RE: Having a slight problem... - by TrollingForever - 04-23-2013, 05:37 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:44 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:51 PM



Users browsing this thread: 1 Guest(s)