Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Line of sight

Author
Message
White Fang 12
17
Years of Service
User Offline
Joined: 28th Aug 2007
Location: In my office coding
Posted: 2nd Aug 2008 23:10 Edited at: 2nd Aug 2008 23:17
All i know is that you can use sparkys collision for it using raycasting but i do not know how to use raycasting for line of sight.
Want i want to do is have an enemy that has a cone of vision and if you are in that cone you are seen and if your a behind an object or outside the cone you are not seen.
Here is a horrible pic i made to show this. I hope you guys can help and maybe show me the anwser was infront of me the hole time.

I'm a noob help will be accepted

Attachments

Login to view attachments
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 3rd Aug 2008 02:49
Hallo White Fang 12.

You can use:




cheers.

oh my god
White Fang 12
17
Years of Service
User Offline
Joined: 28th Aug 2007
Location: In my office coding
Posted: 4th Aug 2008 02:24
Sadly i already thought of it but there is one problem then enemy can see all around him and im not sure how to fix this.

I'm a noob help will be accepted
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 4th Aug 2008 14:41
I made, some time ago, a small snippet aiming at checking line of sight and player visibility.
hope it can help

Login to post a reply

Server time is: 2024-11-24 23:05:16
Your offset time is: 2024-11-24 23:05:16