Does anyone know what this error means in the error logs? It happens sometimes from my code that checks & drops them if player is holding explosives.
This probably isn't needed in Fo2 engine at all since the functionality is included, but this didn't used to give an error so I'm confused why it's giving an error now.
And here's the drop code:
This probably isn't needed in Fo2 engine at all since the functionality is included, but this didn't used to give an error so I'm confused why it's giving an error now.
Code:
Script Error: scripts\obj_dude.int: op_drop_obj: can't match program to sid
Code:
if critter_inven_obj(dude_obj, 2) > 0 then begin
IDH2 := obj_pid(critter_inven_obj(dude_obj, 2));
if IDH2 == 206 then begin
set_global_var(354, 1);
drop_obj(critter_inven_obj(dude_obj, 2));
end
else begin
if IDH2 == 209 then begin
set_global_var(354, 1);
drop_obj(critter_inven_obj(dude_obj, 2));
end
end
end
if critter_inven_obj(dude_obj, 1) > 0 then begin
IDH1 := obj_pid(critter_inven_obj(dude_obj, 1));
if IDH1 == 206 then begin
set_global_var(354, 1);
drop_obj(critter_inven_obj(dude_obj, 1));
end
else begin
if IDH1 == 209 then begin
set_global_var(354, 1);
drop_obj(critter_inven_obj(dude_obj, 1));
end
end
end