Hey guys,
I have a hopefully simple problem, but I don't manage to figure it out.
The following lines are removing a item from the player inventory, and is working when I use the item in the hand\weapon slot, however it isn't working when I use the item directly in the inventory:
variable smoke;
variable JunkIt;
script_overrides;
smoke:=obj_carrying_pid_obj(dude_obj, PID_CIGS);
display_msg(mstr(102));
JunkIt=rm_mult_objs_from_inven(dude_obj,smoke,1);
set_local_var(LVAR_Count, 0);
The procedure fire once the conditions are met, but the item stay in the inventory, except if I use it with the weapon slot, where it properly get removed. Am I missing something?
I have a hopefully simple problem, but I don't manage to figure it out.
The following lines are removing a item from the player inventory, and is working when I use the item in the hand\weapon slot, however it isn't working when I use the item directly in the inventory:
variable smoke;
variable JunkIt;
script_overrides;
smoke:=obj_carrying_pid_obj(dude_obj, PID_CIGS);
display_msg(mstr(102));
JunkIt=rm_mult_objs_from_inven(dude_obj,smoke,1);
set_local_var(LVAR_Count, 0);
The procedure fire once the conditions are met, but the item stay in the inventory, except if I use it with the weapon slot, where it properly get removed. Am I missing something?