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
Whats script areas problem? (ladder isue)
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#2
RE: Whats script areas problem? (ladder isue)

First of all you should make sure that Interaction is enabled on the area:
[Image: rqRK3oA.png]

If the ladder is an inventory item, you can't use Entity Collide Callbacks, use this instead:

PHP Code: (Select All)
void OnStart()
{ 
    
AddUseItemCallback("", "LadderItem", "LadderArea", "PutLadderToClimb", true);
}

void PutLadderToClimb (string &in asItem, string &in asEntity)
{ 
    
PlaySoundAtEntity("", "05_attach_ladder.snt", "LadderArea", 0, false);
    
RemoveItem("LadderItem");
    
SetEntityActive("LadderJoint", true);
    
SetEntityActive("ClimbArea", true);
} 
02-25-2016, 07:52 AM
Find


Messages In This Thread
RE: Whats script areas problem? (ladder isue) - by Spelos - 02-25-2016, 07:52 AM



Users browsing this thread: 1 Guest(s)