CLEO Help Help me about script

CLEO related
Status
Not open for further replies.

RazooorS

Active member
Joined
Feb 16, 2019
Messages
60
Reaction score
0
Hey UG-BASE can someone help me about object finder i have script but how can i set that script load object
above the ground and not below cuz one scripter spawn object below ground and this is fake object and i can locate real object cuz he have below 100 objects
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Are you to lazy use search button?
PHP:
// 0@ 1@ 2@ = XYZ of object
02CE: 3@ = ground_z_at 0@ 1@ 2@
0087: 4@ = 3@ // Copy groundZ for upper boundary.
4@ += 30.0 // In the sky.
IF AND
    0025:   2@ > 3@ // not under map
    8025:   2@ < 4@ // not in the sky.
THEN
    // DO STUFF
END
 
Last edited:
Status
Not open for further replies.
Top