Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[CS:DE]GetTargetInfo?


NED
 Share

Recommended Posts

How would I go about creating such functions:

Function GetTargetVital(ByVal index As Long, ByVal Vital As Vitals) As Long
Function GetTargetMaxVital(ByVal index As Long, ByVal Vital As Vitals) As Long
Function GetTargetName(ByVal index As Long) As String
Function GetTargetLevel(ByVal index As Long) As Long

To 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

You don't need such function, just use

Player(myTarget).Vital(1)
Player(myTarget).Vital(2)
Player(myTarget).MaxVital(1)
Player(myTarget).MaxVital(2)
Trim$(Player(myTarget).Name)
Player(myTarget).Level

Works 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...