Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Add IPlayer.AimingPlayerID

Give us your input on how we may improve the ScriptAPI in the game in future versions.
Forum rules
By using the forum you agree to the following rules.
Post Reply
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Add IPlayer.AimingPlayerID

Post by NearHuscarl » Fri Apr 03, 2020 5:35 pm

It'd be a great help if you can expose the ID of the player the bot is currently keeping track of when manually aiming. It'd remove the need of raycasting the player in range in my code, which is pretty costly performance-wise.
0 x
Image

User avatar
Danger Ross
Superfighter
Superfighter
Posts: 151
Joined: Thu Mar 31, 2016 12:56 am
Title: Dangerous
SFD Alias: Danger Ross
Started SFD: 14 june 2012 (launch day)
Location: California
Gender:
Age: 22

Post by Danger Ross » Wed Apr 08, 2020 12:14 am

Instead of "AimingPlayerID" it should be generalized to "TargetPlayerID". The player the bot is targeting is also who they're aiming at.
0 x
sorry bucko, you can't punch with swords 8-)

NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Post by NearHuscarl » Wed Apr 08, 2020 12:35 pm

Yeah TargetPlayerID is ultimately what I want. I was having tunnel vision when I made that suggestion.
0 x
Image

Post Reply