Ask for help
Moderators: Murderator+, Murderator
-
supermudo
- Posts: 8
- Joined: 2004-07-20 18:57:51
Post
by supermudo »
the function uo.GetHP() can´t seem to work....
i defined an object "dude" for my sparring dude at the objects tab, but teh code:
Code:
Code: Select all
var x = 0
x = uo.gethp("dude")
uo.print(str(x))
prints only 0´s to client
what am i doing wrong?
-
Yoko
- Site Admin
- Posts: 1964
- Joined: 2004-04-03 16:49:38
-
Contact:
Post
by Yoko »
Track World in Main tab
-
supermudo
- Posts: 8
- Joined: 2004-07-20 18:57:51
Post
by supermudo »
didn´t work....
is it right the method of calling the uo.GetHP() function?
if i put any string ie. uo.getHP("gewgegegege")
it returns 0 anyway.
how do i pass objects correctly to it?
-
Yoko
- Site Admin
- Posts: 1964
- Joined: 2004-04-03 16:49:38
-
Contact:
Post
by Yoko »
supermudo wrote:didn?t work....
is it right the method of calling the uo.GetHP() function?
if i put any string ie. uo.getHP("gewgegegege")
it returns 0 anyway.
how do i pass objects correctly to it?
you will get health of object gewgegegege defined in objects tab
-
supermudo
- Posts: 8
- Joined: 2004-07-20 18:57:51
Post
by supermudo »
it realy doesn´t work, my dll is from Build 305.01
maybe it has any bug on gethp?