View Single Post
  #2  
Old 10-27-2013, 07:21 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 354
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
in the new V6 client a serverside triggeraction() in a level npc is received on the clients of all players in the level, and if you want to store data that can be retrieved on the client of a player who enters the level you can also use this.attr[#]
PHP Code:
function updatePoly(temp.polyarray){
  
this.attr[1] = int(timevar2);
  
this.attr[2] = temp.polyarray;
  
triggeraction(this.1this.1"UpdatePoly""");
}

//#CLIENTSIDE
function onCreated()
  
this.setshape(13232);

function 
onPlayerEnters()
  if(
this.attr[1] != this.save_time)
    
this.onActionUpdatePoly();

function 
onActionUpdatePoly(){
  
this.save_time this.attr[1];
  
this.showpoly(200this.attr[2].tokenize(","));

__________________
This signature has been deleted by Darlene159.
Reply With Quote