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 add.. Not working
39Games Offline
Junior Member

Posts: 48
Threads: 14
Joined: Jan 2013
Reputation: 0
#8
RE: Ladder add.. Not working

(02-20-2013, 11:53 AM)No Author Wrote:
(02-20-2013, 10:11 AM)39Gamer Wrote: I want to set an entity interact with a ladder piece (cisternladder) to another ladder piece (ladderplace). I have written the code and it doesn't work...
void OnStart ()
{
    AddUseItemCallback("", "cisternladder", "LadderPlace", "LadderPlace", true);
}
void LadderPlace(string &in asTimer)
{    
    SetEntityActive("LadderArea_1", true);
    SetEntityActive("ladder1", true);
    PlaySoundAtEntity("", "impact_wood_med.snt", "LadderPlace", 0, false);
    RemoveItem("cisternladder");    
}
Any tips?
Cheers

The "void LadderPlace(string &in asTimer)" should be changed into this:
PHP Code: (Select All)
void LadderPlace(string &in asItemstring &in asEntity)
{
///////// OTHER SCRIPTS


That should do the trick.

Ah thanks it worked! But one other thing, the ladder area doesnt work, it enables and the click to climb thing comes up but the player does not climb. The ladder area and the ladders are up against a water reservoir if that may be the issue...

02-21-2013, 06:06 AM
Find


Messages In This Thread
Ladder add.. Not working - by 39Games - 02-20-2013, 10:11 AM
RE: Ladder add.. Not working - by 39Games - 02-20-2013, 11:28 AM
RE: Ladder add.. Not working - by No Author - 02-20-2013, 11:36 AM
RE: Ladder add.. Not working - by 39Games - 02-20-2013, 11:40 AM
RE: Ladder add.. Not working - by No Author - 02-20-2013, 11:53 AM
RE: Ladder add.. Not working - by 39Games - 02-21-2013, 06:06 AM
RE: Ladder add.. Not working - by NaxEla - 02-21-2013, 06:12 AM
RE: Ladder add.. Not working - by 39Games - 02-21-2013, 06:31 AM



Users browsing this thread: 1 Guest(s)