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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting an Entity Active
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Setting an Entity Active

I'm not sure how you use the OnPickup or OnIgnite, but i believe they are used in an If script. Like

void SetEntityActive(string &in asEntity, string &in type)
if(OnPickup == true)


Anyway i would use the SetEntityPlayerInteractCallback function. This is directly triggered when you interact with an object. Here you don't have to define when it should happen Wink

void OnStart()
{
SetEntityPlayerInteractCallback("lantern", "SetEntityActive", true);
}

void SetEntityActive(string &in asEntity)
{
SetEntityActive("monster1", true);
ShowEnemyPlayerPosition("monster1");
SetEntityActive("monster2", true);
ShowEnemyPlayerPosition("monster2");

}

Trying is the first step to success.
(This post was last modified: 06-02-2012, 01:24 PM by FlawlessHappiness.)
06-02-2012, 01:24 PM
Find


Messages In This Thread
Setting an Entity Active - by TheIcyPickle - 06-02-2012, 06:31 AM
RE: Setting an Entity Active - by FlyingFruitcake - 06-02-2012, 01:12 PM
RE: Setting an Entity Active - by Xanthos - 06-02-2012, 01:21 PM
RE: Setting an Entity Active - by FlawlessHappiness - 06-02-2012, 01:24 PM
RE: Setting an Entity Active - by TheIcyPickle - 06-02-2012, 03:24 PM
RE: Setting an Entity Active - by Putmalk - 06-02-2012, 07:09 PM
RE: Setting an Entity Active - by TheIcyPickle - 06-02-2012, 07:37 PM
RE: Setting an Entity Active - by Putmalk - 06-02-2012, 07:46 PM
RE: Setting an Entity Active - by TheIcyPickle - 06-02-2012, 07:54 PM
RE: Setting an Entity Active - by Putmalk - 06-02-2012, 08:05 PM
RE: Setting an Entity Active - by TheIcyPickle - 06-02-2012, 08:11 PM
RE: Setting an Entity Active - by Putmalk - 06-02-2012, 08:18 PM
RE: Setting an Entity Active - by TheIcyPickle - 06-02-2012, 08:51 PM
RE: Setting an Entity Active - by Putmalk - 06-02-2012, 09:02 PM
RE: Setting an Entity Active - by TheIcyPickle - 06-02-2012, 09:09 PM
RE: Setting an Entity Active - by Putmalk - 06-03-2012, 12:15 AM
RE: Setting an Entity Active - by TheIcyPickle - 06-03-2012, 12:58 AM
RE: Setting an Entity Active - by Putmalk - 06-03-2012, 04:10 AM
RE: Setting an Entity Active - by TheIcyPickle - 06-03-2012, 04:28 AM
RE: Setting an Entity Active - by Putmalk - 06-03-2012, 06:47 AM



Users browsing this thread: 2 Guest(s)