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.Disarm()

Here you can find ScriptAPI suggestions implemented in the game.
Forum rules
By using the forum you agree to the following rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Add IPlayer.Disarm()

Post by NearHuscarl » Sat Mar 21, 2020 5:10 pm

I'd like a method to disarm IPlayer immediately. Currently the way to do it is to execute the Drop command which will be delayed a bit, an unwanted side effect in my case, since the bot has to hold G for a while to drop the weapon. The method may have the following signature

Code: Select all

IObjectWeaponItem IPlayer.Disarm(Vector2 direction)
0 x
Image

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Sat Mar 21, 2020 6:20 pm

Nice idea.
Added after v.1.3.4:
IObjectWeaponItem IPlayer.Disarm(WeaponItemType weaponType, Vector2 velocity)
1 x
Gurt

Locked