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
#7
RE: ladder script help

(07-11-2012, 09:56 PM)Your Computer Wrote:
(07-11-2012, 09:22 PM)HoyChampoy Wrote: would i put these in the void onstart? is there another code i need? because how will the setmoveobject state know how to make the area active?

SetMoveObjectState(string& asName, float afState);

SetEntityActive(string& asName, bool abActive);

You said you wanted to know how to set the ladder (MoveObject) in the opposite state; i provided you with the function required. You said you wanted to know what function to use to deactivate an area; i provided you with the function required (though deactivating the area can be done in the level editor, too). Neither of these functions "know" when to make the ladder area active or not. I've already provided you with a function to set a callback for informing your script of state changes.
my mistake Undecided . What i wanted was, if the ladder was high in the air, i wanted the ladder area unactive (so the player couldn't climb it yet. but when the player turned the crank which causes the ladder to come down, i want the ladder area to be active. I already know how to simply deactivate an area, i just want to know how to deactivate it when the crank is at a specific state.
07-11-2012, 10:16 PM
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: 1 Guest(s)