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
Switch problem
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#4
RE: Switch problem

(09-27-2011, 09:15 PM)Elven Wrote: I see Smile. TY! I also found method - maybe it helps someone:

void lever(string &in asTimer)
{
if(GetLeverState("levername") == -1/0/1) //whatever state u want Tongue!
{
//DO ur stuff here Smile!
RemoveTimer("lever");
}
AddTimer("", 0, "lever");
}
Well that does in fact work, I would prefer this type of thing. (although all cases vary naturally)

SetEntityConnectionStateChangeCallback("Ent", "StateChangeEnt");
void StateChangeEnt(string &in asEntity, int alState)    {     if(alState == 1) (stuff) else (stuff) }

-Edit- read it wrong... but information nontheless? : D

Insanity. Static.
(This post was last modified: 09-28-2011, 01:39 AM by Juby.)
09-28-2011, 01:37 AM
Find


Messages In This Thread
Switch problem - by Elven - 09-27-2011, 08:56 PM
RE: Switch problem - by Tanshaydar - 09-27-2011, 09:04 PM
RE: Switch problem - by Elven - 09-27-2011, 09:15 PM
RE: Switch problem - by Juby - 09-28-2011, 01:37 AM



Users browsing this thread: 1 Guest(s)