Jump to content

Finding Objects in Game


ToonSkull

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 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 
07A6: get_nearest_tag_location_near_point 1@ 2@ 3@ store_to 8@ 9@ 0@
//Create a marker on TAG 
018A: 4@ = create_checkpoint_at 8@ 9@ 0@ 
Marker.SetColor(4@,1)
//Wait 15 seconds clear the marker and restart the loop
:FIND_TAGS_2
wait 15000
Marker.Disable(4@)
jump @FIND_TAGS_1

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

Edited by ToonSkull
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...