entity placed in WED don't run on client

Posted By: Reconnoiter

entity placed in WED don't run on client - 06/08/14 15:20

Hi all,

Welcome to another volume of my multiplayer threads grin . Anyway back to the point; entities' actions that I have placed in WED do not run on the client. When 'local' marked on but also when marked off.

On the server or singleplayer it works fine.

Now if I create the entity through ent_create on the server, the entity works fine on the client.

An example of one of the actions that does not work for the client (this one is local by the way);

Code:
action world_grass_marker1()
{	
set(my,INVISIBLE | PASSABLE);
 while (my.STATE > 0) {
 my.STATE -= 0.5;	
 ent_createlocal("WorldGrass1.mdl",vector(my.x -1600 + random(3200),my.y -1600 + random(3200),my.z),world_grass1); 
 if (my.STATE <= 0) break;
 }
}



I know it does not run at all since the entity is not invisible/passable on the client. Also when I add an ent_remove(me) as first line of the entities, nothing happens (also not an error message), just nothing.

Thanks for taking the time.
Posted By: Superku

Re: entity placed in WED don't run on client - 06/08/14 15:44

Have a look at dplay_localfunction.
Posted By: Reconnoiter

Re: entity placed in WED don't run on client - 06/08/14 16:13

Thanks the problem was that I forgot to set dplay_localfunction for the client too (forgot to add it when implementing menu's etc.).
© 2024 lite-C Forums