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 / Sorry for another post

Author
Message
Resident Evil 4 fanboy
19
Years of Service
User Offline
Joined: 2nd Feb 2005
Location: Where evil doers are!Oh wait, my room!
Posted: 16th Aug 2005 01:27
can anone example what is a static line and how it works? I went to the manual but it didn't give any signifcant info

I'll be waiting for you on halo 2 with a magnum and shotgun in hand!

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 16th Aug 2005 14:25 Edited at: 16th Aug 2005 14:26
A static line of sight is a projected line.

This is the syntaxis:

static line of sight(sx#,sy#,sz#,tx#,ty#,tz#,range#,accuracy#)

sx#,sy#,sz# are the starting coords of the projected line.
tx#,ty#,tz# are the target coords of the projected line.
range# means the 'radius' of the projected line.
accuracy# . like it says: the accuracy of the projected line. The larger the value, the faster it works.

The projected line will be intersected when it hits a static collision box. The commands
static line of sight x()
static line of sight y()
static line of sight z()
are the coords of the intersection point.

Note: if the line hits a static collision box, the returnvalue will be 1.

Immunity and Annihalation makes Immunihalation...
Resident Evil 4 fanboy
19
Years of Service
User Offline
Joined: 2nd Feb 2005
Location: Where evil doers are!Oh wait, my room!
Posted: 16th Aug 2005 15:04
how does it has anytning to do about A.I

I'll be waiting for you on halo 2 with a magnum and shotgun in hand!

Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 16th Aug 2005 20:27
it`s not actualy anything to do with AI per-se' ,it allows you check if something is present along a certain line.

can the npc see you? use line of sight to check
did that bullet hit the wall or an enemy, line of sight to test
whats the nearest object to you, line of sight

you just use it to make tests and it helps your program to make decisions.

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 16th Aug 2005 21:51 Edited at: 16th Aug 2005 21:53
It's just a matter of thinking...

Immunity and Annihalation makes Immunihalation...
Resident Evil 4 fanboy
19
Years of Service
User Offline
Joined: 2nd Feb 2005
Location: Where evil doers are!Oh wait, my room!
Posted: 17th Aug 2005 03:54
Oh okay! Thanks!

I'll be waiting for you on halo 2 with a magnum and shotgun in hand!

Login to post a reply

Server time is: 2024-11-27 20:30:36
Your offset time is: 2024-11-27 20:30:36