The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Having a slight problem...

I`m having a slight problem. I am trying to figure out how to activate an entity when two altar_knifes are used, but I cannot. I tryed achieving this by using "if" commands as well, but with no success. Here is the part of my .hps in which this problem occurs:

}

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);
}

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);
}

The SetEntityActive parts do this - after the Player "uses" the altar_static_knife, a static_knife_bloody appears.
Anyway, the thing I`m trying to achieve here is after the Player "uses" both knifes, an Orb spawns in it`s designated place, but I do not know how to do this. Hopefully I was clear enough xD Thanks for the help in advance! Big Grin
04-23-2013, 04:26 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 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)