01-24-2012, 04:55 PM
Hi there its me again :c
i just want to make a lever opens a door....these door that can slide up... i searched the wiki and the forum and tried this:
i know that something is wrong, but how can i make it work? someone know? :/
i just want to make a lever opens a door....these door that can slide up... i searched the wiki and the forum and tried this:
PHP Code:
void OnStart()
{
SetEntityConnectionStateChangeCallback("lever_open_01", "openbigdoor");
}
void openbigdoor(string &in asEntity, int alState)
{
if (alState == 1)
{
MoveEntityToArea("door_valve_open", "ScriptArea_1", 5.0, 1.0, 0.0, "door_opened");
return;
}
}
i know that something is wrong, but how can i make it work? someone know? :/
