Force a player to shoot.
#1

Heeeeey'.
I was wondering if it's possible to force a player to shoot.
Example:
The player do the cmd /grenade
The script give him a grenade and force the player to throw the grenade.
If it's possible, can you give me 'trail, track' to help me. Thanks guyz.
Reply
#2

No, you cannot force a player to physically shoot a bullet/throw a projectile. You can however create a system whereby an animation is played, an object is created and moved, and an explosion is created.
Reply
#3

Alright. There is a way to detect if a player throw a grenade, molotov, etc ..?
OnPlayerWeaponShot isn't called. /:

EDIT: Nvm, I can do it with KEYS but I can't get coordinates of the thrown grenade or molotov. '-'
Reply
#4

Its not possible u cant force a player.
Reply
#5

Quote:
Originally Posted by Owen007
Посмотреть сообщение
Its not possible u cant force a player.
Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Alright. There is a way to detect if a player throw a grenade, molotov, etc ..?
OnPlayerWeaponShot isn't called. /:

EDIT: Nvm, I can do it with KEYS but I can't get coordinates of the thrown grenade or molotov. '-'
Reply
#6

UP. :3
Reply
#7

What are you asking? It isn't possible. Are you asking how to get the coordinates of a thrown projectile? Again, you can't accurately. You can do it by scripting your own system, but seeing as players can hold the mouse button to throw it further, there's no real way to do this.

One possible option is detect when the player holds and then releases the fire button. Then there's the annoyance of distance per duration held etc...
Reply
#8

Alright ! Thanks you !
Another question (yea, I know I'm pretty annoying). There is a "simple" way to detect colision without include, plugins or stuff like that?
Reply
#9

put on your server.cgf

Код:
messageslimit 50000
Reply
#10

Quote:
Originally Posted by RedMF
Посмотреть сообщение
put on your server.cgf

Код:
messageslimit 50000
Wrong thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)