#1 14-08-2011 08:27

the_rocknrolla0001
Registered: 14-08-2011
Posts: 5

I need to ask something

Hello, I am new to CLEO Scripting and working on my first project. What I need now is how can you Mark a ped you're aiming at? How can you get them as a variable? Please help me, this is important to my project and to me. Thank you

Offline

#2 15-08-2011 06:36

the_rocknrolla0001
Registered: 14-08-2011
Posts: 5

Re: I need to ask something

There is a CLEO Script on GTAGarage name Mark and Execute. How can I mark the ped just like it, I have tried to open it but can't, don't know why

Offline

#3 15-08-2011 14:21

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: I need to ask something

Try this one
http://sannybuilder.com/forums/viewtopic.php?id=45

it's a mod allowed to catch the ped you're aiming at.
http://cleo.sannybuilder.com/scripts/dbmu.rar

this code gets a target ped into variable

0@ = 300694
0085: 0@ = &0(0@,1i)
inc(0@, 0x79C)
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0        
if
        0@ > 0
then
// 0@ contains a ped struct address
// to convert it to a simple handle use CLEO4's opcode 0AEA: $actor = actor_struct $ped_struct handle
        0AEA: 0@ = 0@
        0321: kill_actor 0@
end

Offline

#4 16-08-2011 14:53

the_rocknrolla0001
Registered: 14-08-2011
Posts: 5

Re: I need to ask something

Thank you, thank you. Finally

Offline

#5 16-08-2011 14:56

the_rocknrolla0001
Registered: 14-08-2011
Posts: 5

Re: I need to ask something

Damm it, I still not so understand that. Please explain to me, thank you

Offline

#6 16-08-2011 15:44

the_rocknrolla0001
Registered: 14-08-2011
Posts: 5

Re: I need to ask something

That CLEO script is for CLEO 3

Offline

#7 17-08-2011 20:56

ZAZ
Registered: 05-12-2007
Posts: 55

Re: I need to ask something

CLEO 4
script shows a red marker above targeted actor

{$CLEO .cs}
:targeted_actor
thread 'targact'

:targact_11
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @targact_11
if
0AD2: 30@ = player $PLAYER_CHAR targeted_actor //IF and SET  
jf @targact_302
if  and
00DF:   actor 30@ driving
847A:   not  actor 30@ driving_a_motorbike
jf @targact_171
0321: kill_actor 30@
wait 0
jump @targact_302

:targact_171 
13@ = Marker.CreateAboveActor(30@)

:targact_180
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @targact_185
if  and
8118:   not actor 30@ dead
0457:   player $PLAYER_CHAR aiming_at_actor 30@
jf @targact_185
jump @targact_180


:targact_185
Marker.Disable(13@)
Actor.RemoveReferences(30@)
jump @targact_11

 
:targact_302
jump @targact_11

Offline

Board footer

Powered by FluxBB