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 issues w/ script
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: Having issues w/ script

Ok. I don't know how far you are.


IN MAP1

void OnStart()
{
SetEntityPlayerInteractCallback("item", "ItemCallback", true)
}

void ItemCallback(string &in asEntity)
{
SetGlobalVarInt("Map2Area", 1);
}

void OnEnter()
{

}

void OnLeave()
{

}

____________________________________
IN MAP2

void OnStart()
{
AddEntityCollideCallback("Player", "ClockArea", "CollideClockArea", false, 1);
}

void CollideClockArea(string &in asParent, string &in asCHild, int alState)
{
if(HasItem("item") == true)
{
PlaySoundAtEntity("", "Clock_Chimes.snt", "clock_grandfather_2", 0, false);

}
}

void OnEnter()
{
if(GetGlobalVarInt("Map2Area") == 1)
{
SetEntityActive("ClockArea", true);
}
}

void OnLeave()
{

}

I don't know if this works, but try it.

Trying is the first step to success.
(This post was last modified: 12-16-2013, 01:31 PM by FlawlessHappiness.)
12-16-2013, 01:30 PM
Find


Messages In This Thread
Having issues w/ script - by str4wberrypanic - 12-15-2013, 09:52 PM
RE: Having issues w/ script - by RaideX - 12-15-2013, 09:57 PM
RE: Having issues w/ script - by str4wberrypanic - 12-15-2013, 10:22 PM
RE: Having issues w/ script - by RaideX - 12-15-2013, 10:35 PM
RE: Having issues w/ script - by str4wberrypanic - 12-15-2013, 10:43 PM
RE: Having issues w/ script - by Daemian - 12-15-2013, 11:00 PM
RE: Having issues w/ script - by str4wberrypanic - 12-15-2013, 11:06 PM
RE: Having issues w/ script - by Daemian - 12-15-2013, 11:54 PM
RE: Having issues w/ script - by Romulator - 12-16-2013, 12:54 AM
RE: Having issues w/ script - by FlawlessHappiness - 12-16-2013, 01:30 PM
RE: Having issues w/ script - by str4wberrypanic - 12-18-2013, 12:48 AM
RE: Having issues w/ script - by Traggey - 12-19-2013, 10:47 PM



Users browsing this thread: 3 Guest(s)