
...I used spawned func_beams to visualize the X Y and Z axis in the world, and suddenly it took no tima at all to place the model, because by looking at the 3 lines I can pretty quickly say if it should be moved about -50 in X, and +30 in Y
Not really any rocket science, but very useful if you like scripting stuff into a map.
The code:
Code: Select all
debug_draw_axis local.origin:
local.beam_end = ( local.origin + ( 100 0 0 ) )
local.beam = spawn func_beam origin local.origin endpoint local.beam_end maxoffset 0
local.beam doActivate
local.beam color (1 0 0)
local.beam_end = ( local.origin + ( 0 100 0 ) )
local.beam = spawn func_beam origin local.origin endpoint local.beam_end maxoffset 0
local.beam doActivate
local.beam color (0 1 0)
local.beam_end = ( local.origin + ( 0 0 100 ) )
local.beam = spawn func_beam origin local.origin endpoint local.beam_end maxoffset 0
local.beam doActivate
local.beam color (0 0 1)
endCode: Select all
thread debug_draw_axis ( 0 0 0 )Code: Select all
thread debug_draw_axis ( -2801.40 -3280.21 259.46 )
