Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant, USER0328), 5,287 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[ANET] Health stat panel #301932
12/15/09 13:28
12/15/09 13:28
Joined: Aug 2008
Posts: 37
Hungary
K
Kronomanta Offline OP
Newbie
Kronomanta  Offline OP
Newbie
K

Joined: Aug 2008
Posts: 37
Hungary
Hi there!

I use the ANET. I'd like to show the player's skills on a HUD.
But I have not managed it so far :S

How can I get the values of them?


EDIT:
I use DEMO version, and in that enet_get_playervar is not allowed. Is there any other way to get my player's skills to show them on a panel? :S

Last edited by Kronomanta; 12/15/09 15:27.
Re: [ANET] Health stat panel [Re: Kronomanta] #301951
12/15/09 15:59
12/15/09 15:59
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
You can access a skill as you do it in singleplayer:

Code:
player.skill[x]



But if you want that the skill has the same value on all pcs, you have to use enet_send_skill() if you change the value of the skill (=> send the new value to all other participants).
Please note that the entity has to be a global entity (created with enet_ent_create()) otherwise enet_send_skill() won't work.

Read the ANet manual entries enet_send_skill() and enet_ent_create() for more details.

Best regards,
Peter Soxberger


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: [ANET] Health stat panel [Re: Dark_samurai] #302486
12/19/09 20:54
12/19/09 20:54
Joined: Aug 2008
Posts: 37
Hungary
K
Kronomanta Offline OP
Newbie
Kronomanta  Offline OP
Newbie
K

Joined: Aug 2008
Posts: 37
Hungary
Thanks, it works grin

I don't know how I could forget it grin
I tried to used names for skills, but without them it works.


Moderated by  HeelX, Spirit 

Gamestudio download | 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