Jump to content
Sign in to follow this  
ToonSkull

Finding Objects in Game

Recommended Posts

Here is a shorty;

{$VERSION 3.1.0027}
{$CLEO .cs}
//Coded by Vincent Black
//June 6th, 2010
//-------------MAIN---------------
thread 'FINDTAGS' 
//Loop here until the player pressed "T"
:FIND_TAGS_1
wait 0
if
0AB0:  key_pressed 0x54
jf @FIND_TAGS_1
//Get player position and nearest TAG 
04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 
07A6: get_nearest_tag_location_near_point [email protected] [email protected] [email protected] store_to [email protected] [email protected] [email protected]
//Create a marker on TAG 
018A: [email protected] = create_checkpoint_at [email protected] [email protected] [email protected] 
Marker.SetColor([email protected],1)
//Wait 15 seconds clear the marker and restart the loop
:FIND_TAGS_2
wait 15000
Marker.Disable([email protected])
jump @FIND_TAGS_1

Issues include; sprayed tags are not eliminated from search and only the nearest tag is shown.

Edited by ToonSkull

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×