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
Message
Som1Lse Offline
Member

Posts: 183
Threads: 9
Joined: Sep 2010
Reputation: 0
#8
RE: Message

I think the function parameters are fine.
No he is missing his callback:
void OnStart()
{
    SetEntityPlayerInteractCallback("mansion_3", "Interactmansion_3", true);
}

void OnEnter()
{
}

void Interactmansion_3(string &in asEntity)
{
    AddTimer("", 1.0f, "TimerDoorMessageOnAgain");
}

void TimerDoorMessageOnAgain(string &in asTimer)
{
    SetMessage("message", "mansion_3", 0);
}

void OnLeave()
{

}
If the above code doesn't work then try changing the message name from "mansion_3" to something else and try again. (and don't forget to update your script file)

@2below:
Whoops, I failed.
*fixed*
(This post was last modified: 02-01-2011, 10:00 PM by Som1Lse.)
02-01-2011, 08:01 AM
Website Find


Messages In This Thread
Message - by Sudden - 01-31-2011, 10:03 PM
RE: Message - by Som1Lse - 01-31-2011, 10:44 PM
RE: Message - by Sudden - 01-31-2011, 10:59 PM
RE: Message - by Frontcannon - 01-31-2011, 11:11 PM
RE: Message - by Sudden - 01-31-2011, 11:44 PM
RE: Message - by Frontcannon - 01-31-2011, 11:56 PM
RE: Message - by Vradcly - 02-01-2011, 12:18 AM
RE: Message - by Som1Lse - 02-01-2011, 08:01 AM
RE: Message - by Sudden - 02-01-2011, 06:41 PM
RE: Message - by Oscar House - 02-01-2011, 06:58 PM



Users browsing this thread: 1 Guest(s)