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
Whats script areas problem? (ladder isue)
sabrinagsoledad Offline
Junior Member

Posts: 32
Threads: 10
Joined: Feb 2016
Reputation: 0
#1
Whats script areas problem? (ladder isue)

Hi.
I wrote this to make the ladder item (the one that u pick up) to interact with an Area (LadderArea) to make appear the static item lader (LadderJoint). But for some reason... i cant make the item interacts with the area... its like the area wasnt there for interact.

(info for the script below; "LladerItem" the pickup ladder / "LadderArea" its an Area where the pickup ladder will interact / and LadderJoint and ClimbArea is the two items that will apear to let me go up.
Dont know whats my mistake.
I make the Area where the ladder interacts TO huge to make it sure to find it yet nothing... or that makes it even worst?

void OnStart()
{
AddEntityCollideCallback ("LadderItem", "LadderArea", "PutLadderToClimb", true, 1);
}

void PutLadderToClimb (string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "05_attach_ladder.snt", "LadderArea", 0, false);
RemoveItem("LadderItem");
SetEntityActive("LadderJoint", true);
SetEntityActive("ClimbArea", true);
}
02-25-2016, 03:03 AM
Find


Messages In This Thread
Whats script areas problem? (ladder isue) - by sabrinagsoledad - 02-25-2016, 03:03 AM



Users browsing this thread: 1 Guest(s)