Walking out of a pickup?
#1

How would I detect that without using a timer?

I have..

pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if( pickupid == hospital )
    {
        TextDrawShowForPlayer( playerid, EnterTD );
    }
    return 1;
}
How would I detect if they leave that pickup without using a timer to cross reference their position?
Reply
#2

I don't think that's possible, to be totally honest.

It's a timer I'm afraid.
Reply
#3

God dammit, lol. Too bad. Alright, thanks anyhow Getty.
Reply
#4

No problem 2KY
Reply
#5

if you used a checkpoint you could use
IsPlayerInCheckpoint in the OnPlayerUpdate callback to see if they are still in that position,
if your not using it for anything else it might be an option.

a checkpoint is not the only way to go, im just not sure on the performance of it.,
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)