This is how it is set up in the HPL editor:
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.