The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Ladder add.. Not working

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

02-20-2013, 10:11 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: 2 Guest(s)