Hi folks,
i have some trouble to getting my script working correctly.
There are two scripts.
Crane Control :
Car:
it should work like this:
when I use a scenery object on the map (crane control)
with an other scenery object on the map (car) should be destroyed. But he did not accept my GVAR. Yes i update the global.h and even the vault13 but without Success. First i thought this is maybe because i use two different scripts (should not be, because gvars are global like the name says^^ )
But i even used it in the same procedure and had unfortunately no luck! So i do not see any error in the script, maybe you can help me out this dilemma.
so long
Mr.Wolna
edit: i don't know mayabe the procedure is false.
i have some trouble to getting my script working correctly.
There are two scripts.
Crane Control :
Code:
procedure use_p_proc begin
gfade_out(3);
set_global_var(GVAR_CRANE_CONTROL,1);
gfade_in(3);
end
Car:
Code:
procedure critter_p_proc begin
if (global_var(GVAR_CRANE_CONTROL) == 1) then begin
destroy_object(self_obj);
end
end
it should work like this:
when I use a scenery object on the map (crane control)
with an other scenery object on the map (car) should be destroyed. But he did not accept my GVAR. Yes i update the global.h and even the vault13 but without Success. First i thought this is maybe because i use two different scripts (should not be, because gvars are global like the name says^^ )
But i even used it in the same procedure and had unfortunately no luck! So i do not see any error in the script, maybe you can help me out this dilemma.
so long
Mr.Wolna
edit: i don't know mayabe the procedure is false.