Is it such a function?
#1

Is there a function, which teleports you to a position once you enter it?

For example, LinkVehicleToPos.

I already know that there's LinkVehicleToInterior, as I'm asking for something different.
Reply
#2

I assume you mean interiors?

There is probably a list off the interiors coordinates if you need them, but no there is no function that does that. you'd have to do it with SetPlayerPos and SetPlayerInterior
Reply
#3

Quote:
Originally Posted by FUNExtreme
Посмотреть сообщение
I assume you mean interiors?

There is probably a list off the interiors coordinates if you need them, but no there is no function that does that. you'd have to do it with SetPlayerPos and SetPlayerInterior
Ah, I see. Thanks for replying though.
Reply
#4

Looks like someone beat me to it. Is this what you wanted?

What do you mean, if a player enters a specific vehicle they are teleported or something?

If that is not what you want, please rephrase your question.

This is an example:

pawn Код:
//Under OnGameModeInit

Vehicle1 = CreateVehicle(parameters here); //Vehicle 1

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == Vehicle1)
    {
        SetPlayerPos(playerid, coord1, coord2, coord3);
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Looks like someone beat me to it. Is this what you wanted?

What do you mean, if a player enters a specific vehicle they are teleported or something?

If that is not what you want, please rephrase your question.

This is an example:

pawn Код:
//Under OnGameModeInit

Vehicle1 = CreateVehicle(parameters here); //Vehicle 1

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == Vehicle1)
    {
        SetPlayerPos(playerid, coord1, coord2, coord3);
    }
    return 1;
}
That's what I wanted, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)