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
ladder script help
HoyChampoy Offline
Junior Member

Posts: 43
Threads: 16
Joined: Jun 2012
Reputation: 0
#11
RE: ladder script help

(07-12-2012, 01:17 AM)Your Computer Wrote:
(07-12-2012, 12:14 AM)HoyChampoy Wrote: For the string asName do I put the name of the ladder or the name of the valve?

Name of the valve.

(07-12-2012, 12:14 AM)HoyChampoy Wrote: and lets say for the asCallback, if i named it activateladderarea, would i put SetEntityActive in there?

Yes.

(07-12-2012, 12:14 AM)HoyChampoy Wrote: like this:

You need to make use of alState if you want to make the ladder area active only when the valve is fully turned towards a certain direction.
Got it to work Smile


SetEntityConnectionStateChangeCallback("valve_iron_rusty_1", "ladderarea");


void activateladderarea(string &in asEntity, int alState)
{
SetMultiSliderCallback("valve_iron_rusty_1", "ladderarea");
}

void ladderarea(string &in asEntity, int alState)
{
if(alState == 1)
{

SetEntityActive("LadderArea_1", true);

}

}
07-12-2012, 01:56 AM
Find


Messages In This Thread
ladder script help - by HoyChampoy - 07-11-2012, 03:22 AM
RE: ladder script help - by Your Computer - 07-11-2012, 07:25 AM
RE: ladder script help - by HoyChampoy - 07-11-2012, 08:22 AM
RE: ladder script help - by Your Computer - 07-11-2012, 11:33 AM
RE: ladder script help - by HoyChampoy - 07-11-2012, 09:22 PM
RE: ladder script help - by Your Computer - 07-11-2012, 09:56 PM
RE: ladder script help - by HoyChampoy - 07-11-2012, 10:16 PM
RE: ladder script help - by Your Computer - 07-11-2012, 11:13 PM
RE: ladder script help - by HoyChampoy - 07-12-2012, 12:14 AM
RE: ladder script help - by Your Computer - 07-12-2012, 01:17 AM
RE: ladder script help - by HoyChampoy - 07-12-2012, 01:56 AM



Users browsing this thread: 2 Guest(s)