Posts: 140
Threads: 16
Joined: Jun 2011
Reputation:
0
Hi everyone i would like to make when a player tries to shoot deny it, so he wont shoot, any idea how i could make this work out? thanks.
Posts: 1,114
Threads: 183
Joined: Apr 2012
Reputation:
0
you want the players do not use guns?
Posts: 140
Threads: 16
Joined: Jun 2011
Reputation:
0
i want the player to have the gun but not to shoot, when he attempts to shoot cancel it.
Posts: 1,114
Threads: 183
Joined: Apr 2012
Reputation:
0
Ah sorry, i don't know what's this function.
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
you can't, you can deny the damage they do by setting everyone to the same team and then processing the damage being dealt by every player using OnPlayerTakeDamage or OnPlayerGiveDamage
Posts: 1,336
Threads: 30
Joined: Aug 2010
Reputation:
0
you can try it in OnPlayerUpdate and key states which may be inaccurate but yes u can give a try like:
OnplayerUpdate -> GetKeys -> if key = aim & fire -> apply anim / slap him etc..
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
if OnPlayerKeyStateChange is called then that means they've already pressed the keys
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
Or maybe, Get the player's health,
When player is damaged by the other player, Set it back to current health.
Posts: 140
Threads: 16
Joined: Jun 2011
Reputation:
0
no, i need to cancel the shoot before he shoots i mean like when he's about to shoot cancel it, maybe an animation?