NED Posted November 4, 2011 Author Share Posted November 4, 2011 How would I go about creating such functions:Function GetTargetVital(ByVal index As Long, ByVal Vital As Vitals) As LongFunction GetTargetMaxVital(ByVal index As Long, ByVal Vital As Vitals) As LongFunction GetTargetName(ByVal index As Long) As StringFunction GetTargetLevel(ByVal index As Long) As LongTo get the targeted NPC/Player Vitals, MaxVitals, Name and Level and more info if possible. I'd apreciate if anyone could help me. Link to comment Share on other sites More sharing options...
Carim123 Posted November 4, 2011 Share Posted November 4, 2011 You don't need such function, just usePlayer(myTarget).Vital(1)Player(myTarget).Vital(2)Player(myTarget).MaxVital(1)Player(myTarget).MaxVital(2)Trim$(Player(myTarget).Name)Player(myTarget).LevelWorks for me in Origins, so I don't see why it shouldn't work in CSDE. If CSDE doesn't use myTarget, just change the myTargets to the CSDE equivalent. Link to comment Share on other sites More sharing options...
NED Posted November 4, 2011 Author Share Posted November 4, 2011 It didn't work the way you wrote, but I'm ctrl+f'ing around and I think I'm gonna get somewhere xD. Gonna take a break now, but later If solve my problem I'll report. Link to comment Share on other sites More sharing options...
NED Posted November 4, 2011 Author Share Posted November 4, 2011 Sry for double post.Awesome. The only thing I must do is differ NPCs from Players and it works perfectly.Thanks for the help Serenade^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now