This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum 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: 1887
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 36

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