Using this you can draw a line like using 0B68:
*I've made this by myself after reading Opcode's post about getting Y/Z angle.
*I've tested this and works perfect.
Call function:
Function:
*I've made this by myself after reading Opcode's post about getting Y/Z angle.
*I've tested this and works perfect.
Call function:
Code:
0AB1: call_scm_func drawLine 9 x1y1 0@ 1@ x2y2 2@ 3@ thickness 1.0 R 255 G 255 B 255 A 255
Function:
Code:
:drawLine
//0AB1: call_scm_func drawLine 9 x1y1 0@ 1@ x2y2 2@ 3@ thickness 1.0 R 255 G 255 B 255 A 255
0390: load_txd_dictionary 'LD_DUAL'
038F: load_texture "white" as 300
0509: 9@ = distance_between_XY 0@ 1@ and_XY 2@ 3@
0063: 2@ -= 0@
0063: 3@ -= 1@
0604: get_Z_angle_for_point 2@ 3@ store_to 10@
10@ += 90.0
0017: 2@ /= 2.0
0017: 3@ /= 2.0
005B: 0@ += 2@
005B: 1@ += 3@
074B: draw_texture 300 position 0@ 1@ scale 9@ 4@ angle 10@ color_RGBA 5@ 6@ 7@ 8@
0391: release_textures
0AB2: ret 0