Forum

> > CS2D > Scripts > Shoot Detection
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Shoot Detection

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Shoot Detection

DarkLight66
User Off Offline

Zitieren
Hello, i want to know what would be the most optimal way to detect if a shoot from a player's weapon passed through a rectangular area. Here is an example:
IMG:https://i.imgur.com/Mzpnq.png?1

alt Re: Shoot Detection

krabob
User Off Offline

Zitieren
work out the angle from the rectangular area to the player, check if the player's rotation is the same.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht