#1 26-05-2010 01:05

simen1992
Registered: 26-05-2010
Posts: 4

[ Request ] Target Script

Could somone please make a script that makes a target at a marker?

illustration:

[img align=C]http://i48.tinypic.com/dqgq5x.png[/img]

This would help me alot smile

even if i have to push a button to make the target it will be fine .. im just tired of having to go to esc and map all the time smile...

Ty all

Last edited by simen1992 (26-05-2010 01:06)

Offline

#2 26-05-2010 14:03

Silent
Registered: 08-05-2010
Posts: 29

Re: [ Request ] Target Script

Try this script. Marker is placed by pressing M while target marker is on. To turn it off click M again:

thread 'MARKER' 

:MARKER_11
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @MARKER_11 
if and
0AB6: store_target_marker_coords_to 0@ 1@ 2@ // IF and SET 
0AB0:   key_pressed 77 
jf @MARKER_11 
02CE: 2@ = ground_z_at 0@ 1@ 2000.0 
3@ = Marker.CreateIconAndSphere(0, 0@, 1@, 2@)
wait 100 

:MARKER_93
wait 0
if
0AB0:   key_pressed 77 
jf @MARKER_93
wait 100 
Marker.Disable(3@)
jump @MARKER_11

If you want, I will try to expand this code to handle ~5 placed markers at one time.

Warning - this script is untested in game.

Last edited by SilentPL (26-05-2010 14:06)

Offline

#3 26-05-2010 14:56

simen1992
Registered: 26-05-2010
Posts: 4

Re: [ Request ] Target Script

Ty very much! ill try it out now grin

Offline

#4 26-05-2010 15:26

simen1992
Registered: 26-05-2010
Posts: 4

Re: [ Request ] Target Script

Working! but wrong sad i wanted it to create target at a marker, theres only one marker defined at map at a time, would that be possible?

Offline

#5 26-05-2010 15:28

Silent
Registered: 08-05-2010
Posts: 29

Re: [ Request ] Target Script

Ouch, that's not possible (but I'm not sure, maybe by some memory addresses).

Offline

#6 26-05-2010 15:37

simen1992
Registered: 26-05-2010
Posts: 4

Re: [ Request ] Target Script

is there a way to store coords of radar icon? besides the target icon

Offline

Board footer

Powered by FluxBB