Quote:
Originally Posted by iDigzy
Thanks for the quick response , that seems to work. However if I try to make it work for clientside so only the player sees the chat it does not work. I was wondering if it would make much of a difference if I used player.client.tutorial=1; instead of clientr as client seems to work on clientside. Or would it be better to do a trigger in an npc so it can use clientr?
|
You probably only want to move the chat line clientside.
PHP Code:
function onPlayerTouchsMe() {
player.clientr.tutorial = 1;
}
//#CLIENTSIDE
function onPlayerTouchsMe() {
this.chat = player.nick SPC "welcome to Castaway! To get started talk to Brian the skiller outside just outside of here";
}
Alternatively, yes, you can use
player.client instead as long as you don't care that cheating players can easily tamper with that variable.