Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Problem with FirstThingInView
Problem with FirstThingInView
2001-08-15, 9:36 PM #1
This function is not documented in the Jk_specs but I think that the second parameter is the fov of an actor.

I tried to use 360 with a boxturret (boxturret4) but it doesn't work.
I used :
potential = FirstThingInView(TurretActor, 360, 7.0, 0x404);

It simply doesn't at all. The turret never sees me.
If I try 350, it only sees me when I'm in front of it.

How can I make it work ?

2001-08-15, 10:06 PM #2
http://www.sfc.keio.ac.jp/~t00214ho/millennium/cogverb/

The FirstThingInView doesn't do more than 180 deg for some weird reason, so you have to do it twice if you want to check them all around one's self.

------------------
http://millennium.massassi.net/ - Millennium
2001-08-16, 5:08 AM #3
Thanks !
I'll try it.
2001-08-16, 7:40 AM #4
Probably because if it's beyond 180 it isn't really in the thing's view.
2001-08-16, 1:41 PM #5
Ah, maybe it's relative to thing's FOV set in the template.

------------------
http://millennium.massassi.net/ - Millennium
2001-08-16, 1:42 PM #6
Ah, forget it, maybe what Aglar just said is the thing.

------------------
http://millennium.massassi.net/ - Millennium
2001-08-16, 6:02 PM #7
270 is the highest i got
2001-08-16, 8:59 PM #8
Hum... Don't think it's the thing limitation. A boxTurret has a fov of 360 in the ai file.

I created a ghost looking back and it works fine now.

But in many MotS' cogs, I've found FirstThingInView used with values greater than 270 (300 and 350)...
2001-08-17, 6:38 AM #9
Eh, it's possible that they tweaked it for MotS.

↑ Up to the top!