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




Users browsing this thread: 1 Guest(s)