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
Another script with levers
WLN73 Offline
Junior Member

Posts: 10
Threads: 3
Joined: Apr 2012
Reputation: 0
#3
RE: Another script with levers

(04-30-2012, 01:22 AM)Rapture Wrote: Here ya go...

SetEntityInteractionDisabled(string& asName, bool abDisabled);
Thank you ... I tried but they work even if I don't use the first lever
Or i wronged something....what i have to write at "bool abDisabled" ????
I maked this:

void OnEnter()
{
SetEntityPlayerInteractCallback("switch4", "func1", true);
SetEntityPlayerInteractCallback("switch1", "func2", true);
}

void func1(string &in EntityName, int alState)
{
if( alState == -1)
SetEntityInteractionDisabled("switch1", true);
if( alState == 1)
SetEntityInteractionDisabled("switch1", false);
}

void func2(string &in EntityName, int alState)
{
if( alState == -1)
SetLampLit("lampada1", false, true);
if( alState == 1)
SetLampLit("lampada1", true, true);
}

What i wrong????? Huh
04-30-2012, 01:39 AM
Find


Messages In This Thread
Another script with levers - by WLN73 - 04-30-2012, 01:06 AM
RE: Another script with levers - by Rapture - 04-30-2012, 01:22 AM
RE: Another script with levers - by WLN73 - 04-30-2012, 01:39 AM
RE: Another script with levers - by WLN73 - 04-30-2012, 06:29 AM



Users browsing this thread: 1 Guest(s)