Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 938 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Enemy Lock on Multiplayer! #185864
02/26/08 17:28
02/26/08 17:28
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
How would I get the enemy to create an arrow above its head when the player is close to it, but only the players version of the enemy creates the arrow, the other players cant see the arrow and their enemys arrow create skill or somthing is set to 0 ready to creat one when their player is near...?

do i have to use proc_client & ent_createlocal, things like that??

do you understand what i'm trying to ask?

Re: Enemy Lock on Multiplayer! [Re: RyuShinji] #185865
02/26/08 18:01
02/26/08 18:01
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline
Senior Member
Zelek  Offline
Senior Member

Joined: Feb 2002
Posts: 357
Florida
ent_createlocal sounds like what you want.

Re: Enemy Lock on Multiplayer! [Re: Zelek] #185866
02/26/08 19:01
02/26/08 19:01
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
Ok i think thats working,

Quick Question!

How do i get an entity to create somthing only on the clients server, so its not created on the host or other clients?

Re: Enemy Lock on Multiplayer! [Re: RyuShinji] #185867
02/26/08 20:07
02/26/08 20:07
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline
Senior Member
Zelek  Offline
Senior Member

Joined: Feb 2002
Posts: 357
Florida
That depends on how you want to set things up and what exactly the "trigger" event is.

Wouldn't it be easier to have the client do some checks, and if they're true, then call ent_createlocal, rather than having the entity do the creating?

If you really wanted it to work the other way, I guess the entity would just need a pointer to the player (maybe from a scan or something). It could then do send_var_to() that specific client, which would trigger a function with ent_createlocal.

Maybe that's not the best way, but that's what comes to mind.

Re: Enemy Lock on Multiplayer! Zelek [Re: Zelek] #185868
02/29/08 17:46
02/29/08 17:46
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
Thanks Zelek how do i send a var just to that specific client?

Last edited by RyuShinji; 02/29/08 18:13.

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