meleebuttonpressed, destroyglass, setweaponammoclip
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
I have a couple of quesion I hope you guys can aswer for me
So here we go:
I was looking through the source of the InfinityScript and I found this:
Function.AddMapping("meleebuttonpressed", 33536); Function.AddGlobalMapping("destroyglass", 427); Function.AddGlobalMapping("deleteglass", 428);Can this be used to enable knifing of windows (glass) with the NoKnife mod running?
Because I tried to do this in several ways but it doesn't seem to work for me
The other thing I was having trouble with is the following:
When I use this code my server just instantly crashes
public override void OnPlayerKilled(Entity player, Entity inflictor, Entity attacker, int damage, string mod, string weapon, Vector3 dir, string hitLoc) { if (attacker.IsAlive) { entity.Call("setWeaponAmmoClip", "iw5_44magnum_mp_tactical", "3"); } }What am I doing wrong here?
I hope someone can help me out with this
Any help is appreciated!