Files
IL-GSC/BO1/PC/ZM/clientscripts/_radiant_live_update.csc
2024-02-18 17:32:07 -05:00

31 lines
547 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

main()
{
thread scriptstruct_debug_render();
}
scriptstruct_debug_render()
{
while( 1 )
{
level waittill( "liveupdate", selected_struct );
if( isdefined(selected_struct) )
{
level thread render_struct( selected_struct );
}
else
{
level notify( "stop_struct_render" );
}
}
}
render_struct( selected_struct )
{
self endon( "stop_struct_render" );
while( isdefined( selected_struct ) )
{
Box( selected_struct.origin, (-16, -16, -16), (16, 16, 16), 0, (1, 0.4, 0.4) );
wait 0.01;
}
}