OnPlayerEnterCheckpoint does not fire inside of Interiors?
#7

Quote:
Originally Posted by playbox12
Посмотреть сообщение
It may have something to do with your streamer, but I don't know why don't you try incognitos streamer, create a CP in an interior and see if it prints. (do you actually see the checkpoint in the interior?).
The reason I dont use other peoples streamers is because its a simple computation. Check if they are in a set range, and if they are display it, assign it to a variable as their location so you are trying to recreate the checkpoint every second or w/e your timer is, and your done.

I do see the checkpoint. I got a little flustered by this so I decided to just make it display and make it work off of KeyStateChange. Well, with the KEY_SPRINT key, it only works on enter. Same thing, it wont fire the callback.. what gives!!

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

	if (newkeys & KEY_SPRINT)
	{
	    printf("InCheckpoint - ExitCheckpoint: %d - StreamedLocation: %d - Created: %d - ExitSet: %d",ExitCheckpoint[playerid],StreamedLocation[playerid],Checkpoints[StreamedLocation[playerid]][Created],Checkpoints[StreamedLocation[playerid]][ExitSet]);
    ...
}
Ill try doing the return printf() as suggested, but im not sure its going to work. Quite annoyed.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)