CLEO Help is_char_in_area_3d

CLEO related
Status
Not open for further replies.

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
Code:
:TestArea_SPAWN
0001: wait  0 ms
if
key_down 101
goto @TestArea_INITIATE

:TestArea_TURNOFF
31@ = false
printf "TestArea ~g~OFF" 1337
goto @TestArea_SPAWN

:TestArea_INITIATE
if
31@ = true
004D: jump_if_false @TestArea_SPAWN
if
00A4:   is_char_in_area_3d $PLAYER_ACTOR from 1141.5388 -1287.6674 0.000 to 1192.2391 -1392.2960 15.000 sphere 0
printf "IN AREA" 1337
This doesn't return IN AREA.

I've tried looking around but it doesn't seem like is_char_in_area_3d has ever been used by anyone.

Someone offer an alternative or can someone tell me how to get this to work?

cheers.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Probably because there's no return after that statement?
The first vector should the upper left corner, and the second the lower right corner, the opcode will check if the player is inside the specified rectangle.
 
Status
Not open for further replies.
Top