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
[SOLVED/I GOT PM]Strange HPL function
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
[SOLVED/I GOT PM]Strange HPL function

This is how it is set up in the HPL editor:

[Image: vseu8h.png]


The area has the properties:

Name: AreaPickUpItems
PlayerInteractCallback: PickUpItems
ItemInteraction: "Checked"


I tried making the whole script (That i wanted), but failed so here is the first part, which doesn't work...

Script

void OnStart()
{

SetLocalVarInt("PlacedHandDrill", 0);
SetLocalVarInt("PlacedPoisonGland", 0);
}


void AreaPickUpItems(string &in asEntity)
{
if(GetLocalVarInt("PlacedHandDrill") == 0 && GetLocalVarInt("PlacedPoisonGland") == 0)
{
SetMessage("Messages", "NothingOnPlatform", 0);
}
}

BUT what happens is that when i touch the area, instead of setting the message it collects the two inactive items!!?? Why is this happening?
If i touch the area again it collects the items again. And again. And again... It doesn't make sense to me...

Can anybody explain this? and maybe help me out?

Trying is the first step to success.
(This post was last modified: 08-27-2012, 03:22 PM by FlawlessHappiness.)
08-26-2012, 01:50 PM
Find


Messages In This Thread
[SOLVED/I GOT PM]Strange HPL function - by FlawlessHappiness - 08-26-2012, 01:50 PM
RE: Strange HPL function - by Adny - 08-27-2012, 06:39 AM
RE: Strange HPL function - by FlawlessHappiness - 08-27-2012, 07:07 AM
RE: Strange HPL function - by Adny - 08-27-2012, 07:16 AM
RE: Strange HPL function - by FlawlessHappiness - 08-27-2012, 07:19 AM
RE: Strange HPL function - by Adny - 08-27-2012, 07:22 AM
RE: Strange HPL function - by FlawlessHappiness - 08-27-2012, 07:42 AM



Users browsing this thread: 2 Guest(s)