Hello!
I was wondering if there's a way to get the object a player threw/dropped. I've scrolled through the whole API, the only thing I could find something to be maybe a little bit equivalent was the method 'IPlayer.IsThrowing'. This method doesn't return the item thrown, only a boolean.
Thanks in advance.
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.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Getting objects a player threw/dropped
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
You should collect all the weapons and throwable that are on the ground and then store only the one which has the "Is.Missile" on true, this isn't the most reliable way because also when a grenade explodes on weapons the latter are tracked as missile, but currently is the only way to achieve it.MScull wrote:Hello!
I was wondering if there's a way to get the object a player threw/dropped. I've scrolled through the whole API, the only thing I could find something to be maybe a little bit equivalent was the method 'IPlayer.IsThrowing'. This method doesn't return the item thrown, only a boolean.
Thanks in advance.
1 x
- MScull
- Fighter
- Posts: 33
- Joined: Sun May 29, 2016 9:43 pm
- Title: No Title
- SFD Account: MScull
- SFD Alias: Scull
- Started SFD: PreAlpha 1.8.8
- Location: The Netherlands
- Gender:
- Age: 23
Alright, I was afraid that this was the only possible way to achieve it. Thanks for giving me an answer!JakSparro98 wrote:You should collect all the weapons and throwable that are on the ground and then store only the one which has the "Is.Missile" on true, this isn't the most reliable way because also when a grenade explodes on weapons the latter are tracked as missile, but currently is the only way to achieve it.MScull wrote:Hello!
I was wondering if there's a way to get the object a player threw/dropped. I've scrolled through the whole API, the only thing I could find something to be maybe a little bit equivalent was the method 'IPlayer.IsThrowing'. This method doesn't return the item thrown, only a boolean.
Thanks in advance.
0 x
hi