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
Script Help Door
proshitness Offline
Junior Member

Posts: 20
Threads: 3
Joined: Nov 2011
Reputation: 0
#18
RE: Door

Here please look at the code, it still isn't working...
please look at this and tell me what am i doing wrong
void OnStart(){    AddEntityCollideCallback("Player", "Light_Out", "LampsOff_func", true, 1);    AddEntityCollideCallback("Player", "Shut1", "CloseDoors", true, 1);}
void OnEnter(){}
void OnLeave(){}
void LampsOff_func(string &in asParent, string &in asChild, int alState){    if (asChild == "Light_Out")    {        SetLampLit("candlestick_wall_1", false, true);        SetLampLit("candlestick_wall_2", false, true);        SetLampLit("candlestick_wall_3", false, true);        SetLampLit("candlestick_wall_4", false, true);        SetLampLit("candlestick_wall_5", false, true);        SetLampLit("candlestick_wall_6", false, true);        PlaySoundAtEntity("", "general_wind_whirl.snt", "candlestick_wall_1", 0, false);        PlaySoundAtEntity("", "general_wind_whirl.snt", "candlestick_wall_2", 0, false);        PlaySoundAtEntity("", "general_wind_whirl.snt", "candlestick_wall_3", 0, false);        PlaySoundAtEntity("", "general_wind_whirl.snt", "candlestick_wall_4", 0, false);        PlaySoundAtEntity("", "general_wind_whirl.snt", "candlestick_wall_5", 0, false);        PlaySoundAtEntity("", "general_wind_whirl.snt", "candlestick_wall_6", 0, false);    }}
void CloseDoors(string &in asParent, bool abChild, int alState){    SetSwingDoorClosed("castle_1", true, true);    SetSwingDoorLocked("castle_1", true, true);    PlaySoundAtEntity("", "general_wind_whirl.snt", "castle_1", 0, false);}
11-20-2011, 04:40 PM
Find


Messages In This Thread
Door - by proshitness - 11-09-2011, 09:15 PM
RE: Door - by flamez3 - 11-09-2011, 10:39 PM
RE: Door - by Statyk - 11-09-2011, 10:40 PM
RE: Door - by proshitness - 11-11-2011, 01:24 PM
RE: Door - by flamez3 - 11-11-2011, 01:40 PM
RE: Door - by proshitness - 11-11-2011, 02:45 PM
RE: Door - by flamez3 - 11-11-2011, 03:11 PM
RE: Door - by proshitness - 11-11-2011, 04:57 PM
RE: Door - by Unearthlybrutal - 11-11-2011, 05:29 PM
RE: Door - by proshitness - 11-11-2011, 06:49 PM
RE: Door - by flamez3 - 11-11-2011, 07:00 PM
RE: Door - by proshitness - 11-11-2011, 08:31 PM
RE: Door - by Statyk - 11-11-2011, 08:37 PM
RE: Door - by proshitness - 11-11-2011, 08:41 PM
RE: Door - by Statyk - 11-11-2011, 08:44 PM
RE: Door - by proshitness - 11-19-2011, 12:50 AM
RE: Door - by JenniferOrange - 11-19-2011, 01:03 AM
RE: Door - by proshitness - 11-20-2011, 04:40 PM
RE: Door - by Your Computer - 11-20-2011, 06:49 PM
RE: Door - by Statyk - 11-20-2011, 05:06 PM
RE: Door - by flamez3 - 11-21-2011, 07:47 AM
RE: Door - by Statyk - 11-22-2011, 12:35 AM
RE: Door - by flamez3 - 11-22-2011, 11:17 AM
RE: Door - by Statyk - 11-22-2011, 10:21 PM



Users browsing this thread: 1 Guest(s)