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
2 registered members (Grant, AndrewAMD), 911 guests, and 9 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
Retrieve entity pointer #363556
03/13/11 12:38
03/13/11 12:38
Joined: Mar 2010
Posts: 120
Switzerland
T
TehV Offline OP
Member
TehV  Offline OP
Member
T

Joined: Mar 2010
Posts: 120
Switzerland
Hi,
I just need to know the following: Is it possible to send an entity pointer? I need to send an entity pointer from a client to the server, and then to all other clients.
The target is moving, so simply sending the position of the target and using c_trace won't work.
I need the entity pointer on the server and the clients to be exactly the same. Is this possible to achieve using the gamestudio multiplayer system?

EDIT: I am aware that this would only work if the entity exists on all clients and the server.

Thanks in advance for any replies,
~VI

Last edited by TehV; 03/13/11 12:40.
Re: Retrieve entity pointer [Re: TehV] #363639
03/13/11 19:55
03/13/11 19:55
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Just send the handle of the entity (that is the same on all clients and the server) with send_var and retrieve the pointer with ptr_for_handle.


"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: Retrieve entity pointer [Re: Superku] #364111
03/16/11 15:34
03/16/11 15:34
Joined: Mar 2010
Posts: 120
Switzerland
T
TehV Offline OP
Member
TehV  Offline OP
Member
T

Joined: Mar 2010
Posts: 120
Switzerland
Ah, thanks laugh


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