Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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