13.01.2013, 02:37
Ok to begin I started with the latest version of Ravens Roleplay. I am trying to make a node outside of a building that teleports the player inside when they run onto it. I made this piece of code
but I don't know what to do with it because I want it to happen instantly if you run near the point, no key press or text command. I am thinking I need a new function, but I still have trouble with where I should define and call it, even after doing research. The big GameMode file is confusing to me.
Please point me in the right direction.
Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1366.3108,-1279.5417,13.5469)) //near outside door of ammunation { SetPlayerPos(playerid, 315.4529,-143.0317,999.6016);//inside ammunation SetPlayerInterior(playerid, 1); }
Please point me in the right direction.