Gamestudio Links
Zorro Links
Newest Posts
hello all
by jcl. 09/24/19 09:04
Right AssetsFix for trading Forex on IG?
by Andy60. 09/23/19 21:11
Converting fbx file to mdl7
by Dark_Light. 09/23/19 15:50
New system for Zorro S subscriptions
by jcl. 09/23/19 08:34
IG plugin initial release
by Andy60. 09/23/19 07:40
Any chance of PBR materials with A8?
by Dooley. 09/22/19 21:43
Levels, textures, etc for A8
by Dooley. 09/22/19 03:57
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
8 registered members (svenbob, Tamas, MatPed, Superku, kvm, jenGs, 3run, 1 invisible), 642 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Zylo, Hjuutgckk, Dark_Light, oxygenjoe, web20tpo
18292 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entity placed in WED don't run on client #442014
06/08/14 15:20
06/08/14 15:20
Joined: Dec 2011
Posts: 1,811
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,811
Netherlands
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.

Re: entity placed in WED don't run on client [Re: Reconnoiter] #442015
06/08/14 15:44
06/08/14 15:44
Joined: Sep 2003
Posts: 6,844
Kiel (Germany)
Superku Online
Senior Expert
Superku  Online
Senior Expert

Joined: Sep 2003
Posts: 6,844
Kiel (Germany)
Have a look at dplay_localfunction.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: entity placed in WED don't run on client [Re: Superku] #442016
06/08/14 16:13
06/08/14 16:13
Joined: Dec 2011
Posts: 1,811
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,811
Netherlands
Thanks the problem was that I forgot to set dplay_localfunction for the client too (forgot to add it when implementing menu's etc.).


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1