I used
public void Hit(TriggerArgs args){
Game.RunCommand("/remove 0 1 ");
}
in my map, but after Hit takes place it says that "Command /remove 0 1´ is not valid game map command"
But when I type it in chat, it works flawlessly.
Any help?
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
Forum rules
problem with removing items using /remove
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
- gwendalaze
- Superfighter

- Posts: 84
- Joined: Sat Mar 19, 2016 12:55 pm
- Title: Jarate Yellow Belt
- Started SFD: PreAlpha 1.1.4
- Location: France
the only command that can be used in a script are the command that can be used as startup commands in your map
0 x
- Gwendalaze, failing at being fun, just like this signature
Oh, OK.
Is there some simple way to remove weapons?
Is there some simple way to remove weapons?
0 x
- gwendalaze
- Superfighter

- Posts: 84
- Joined: Sat Mar 19, 2016 12:55 pm
- Title: Jarate Yellow Belt
- Started SFD: PreAlpha 1.1.4
- Location: France
yes
player.RemoveWeaponItemType(WeaponItemType.Rifle);
rifle cand be replaced by Melee, Handgun, Thrown or InstantPickup (though i don't know what the latter do)
player.RemoveWeaponItemType(WeaponItemType.Rifle);
rifle cand be replaced by Melee, Handgun, Thrown or InstantPickup (though i don't know what the latter do)
0 x
- Gwendalaze, failing at being fun, just like this signature

