![]() ![]() |
![]() Post #1 | |
![]() I will kill you Posts: 126 Joined: 13-May 11 ![]() | Does anyone know a way to check if there's any entity in a angled cube? Something like IsLineOfSightClear with a "line thickness" or 0339 with a angle. http://i.imgur.com/5KFhM.png This post has been edited by LINK2012: Sep 8 2012, 11:09 PM |
![]() Post #2 | |
![]() Coding like a Rockstar! ![]() Posts: 1,468 From: ??? Joined: 28-May 09 ![]() | CODE case 0x5F6: case 0x5F7: case 0x5F8: case 0x5F9: case 0x5FA: case 0x5FB: case 0x5FC: case 0x5FD: case 0x5FE: case 0x5FF: case 0x600: case 0x601: sub_487F60(a2, a6); Sooo it'd appear that the 0x487F60 function does the job. However, the function is called directly and it does other script related stuff, so you can't just call it (unless you set up a virtual CRunningScript, but that'd be a bit lame ![]() You'd have to instead figure out how it does the calculations, which could range from simple to insanely mind boggling. Not really looked at the function much other than to determine what the opcodes using it should be named. IS_CHAR_IN_ANGLED_AREA_3D, etc. CODE 06BD: is_area_between_vectors_clear 67@ 68@ 69@ and 287@ 288@ 289@ buildings 1 cars 0 characters 0 objects 0 particles 0 This is basically the script command for IsLineOfSightClear. There should be a simpler way, but I'm not quite sure what... -------------------- | CLEO 4.3.22 | A?i?a?o?3D | UI SDK | Black Market Mod 1.0.1 | GInput 0.3 | Cheat Keyboard | Tactile Cheat Activation | Stream Ini Extender 0.7 | SuperVars | ScrDebug | Vigilante Justice: San Andreas | |
![]() ![]() |