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
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#6
RE: Ladder add.. Not working

(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.

[Image: the-cabin-in-the-woods-masked-people.jpg]
02-20-2013, 11:53 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)