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
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 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
attach entity to local entity #151208
08/30/07 17:32
08/30/07 17:32
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
how can i attach a global (passable) entity to a local (clientside created) entity?

Re: attach entity to local entity [Re: Toon] #151209
08/30/07 18:14
08/30/07 18:14
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
player = ent_createlocal("warlock.mdl", nullvector, movecode);
player2 = ent_create("guard.mdl", nullvector, followplayer);

movecode:

[...]
send_skill(player.x, SEND_VEC);
[...]


followplayer:
[...]
vec_set(my.x, player.x);
[...]


This should do it actually.


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: attach entity to local entity [Re: Captain_Kiyaku] #151210
08/30/07 18:28
08/30/07 18:28
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Quick itnerruption:

Does anybody know whether send_skill still works with Lite-C?

I've seen that new functions send_data/send_var have been added and now also work with Lite-C, but send_skill is not mentioned. Also the syntax of these instructions is surprisingly different, and send_skill is not linked from the other manual pages.

To me it looks like send_skill is outdated. Can anyone shed some light?
Having no send_skill would be very annoying!

Re: attach entity to local entity [Re: Captain_Kiyaku] #151211
08/30/07 18:38
08/30/07 18:38
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
thanks for your reply and i made some progress but im not there yet

the entity now moves with the -sv -cl, but i created it only on the -cl

it should move with the -cl player but it reacts when i move the player on the -sv -cl .what am i doing wrong?


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