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
TheIcyPickle Offline
Member

Posts: 80
Threads: 16
Joined: Feb 2011
Reputation: 0
#17
RE: Setting an Entity Active

yeah sure its


void OnStart()
{
AddUseItemCallback("", "ClosetKey", "door", "KeyOnDoor", true);

AddEntityCollideCallback("Player", "script1", "GetWalkQuest", true, 1);
AddEntityCollideCallback("Player", "script1c", "FinishWalkQuest", true, 1);
AddEntityCollideCallback("Player", "script2", "StartMusic", true, 1);
AddUseItemCallback("OpenDoor", "key2", "door2", "UnlockLevelDoor", true);
AddEntityCollideCallback("Player", "script4", "PlaySoundAtEntity", true, 1);
SetEntityCallbackFunc("lantern_1", "PickLantern");
}

then


void PickLantern(string &in asEntity, string &in asType)
{
SetEntityActive("servant_grunt_1", true);
SetEntityActive("servant_grunt_2", true);
AddDebugMessage("Firing function!", false);
}

Oh and if this means anything it's true, then I deserve 10 slaps to the face...

do I need another .hps file for this new map?

The playsoundatentity lines and also this line we are working now, is on a new map.

if this is the reason. then fuck, *facepalm*

full thing here

http://www.mediafire.com/?83j8bsj42rmb03v
(This post was last modified: 06-02-2012, 09:22 PM by TheIcyPickle.)
06-02-2012, 09:09 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 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: 1 Guest(s)