noob scripting issue

Zorchar

Look, Ma! Two Heads!
Hi.

I want the game to display the amount of hunting rifles i am holding. I used this.

Code:
procedure description_p_proc begin
   script_overrides;
       display_msg(obj_is_carrying_obj_pid(dude_obj,PID_HUNTING_RIFLE));
end

What am I doing wrong?
 
You need to add ""+ if the result is output without text.
Code:
display_msg("" + obj_is_carrying_obj_pid(dude_obj,PID_HUNTING_RIFLE));
 
Back
Top