![]() |
leaving level with player
I am making an npc that leaves the level with the player, but the player is connected to the npc.
eg: playerx=x;playery=y; i dont need a follow player script but Just a warp to the players, x,y when he/she leaves. here is what i thought: NPC Code: im not sure cuz im not that good with npc-server scripting yet, and I havent had a chance to test anything online, its all judging by what ive seen from my firneds. Please share your thoughts (help or fixes). :cool: |
no its #F for player #L is the npc level name ;)
|
NPC Code: |
thanks
|
I feel the need to post here.
|
Quote:
|
Shorter :D :
if (playerleaves && strequals(#a,this.owner)) warpto #F,playerx,playery; |
Quote:
*smacks forhead* i should have guessed that! :-) thanks stefan ;-) |
| All times are GMT +2. The time now is 04:30 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.