Page 1 of 1

Question About Container

Posted: 18.05.2012 8:11
by Ray
I found that sometime the opened container will close.
how can i detect the container opened or not?
currently i use "use object(containerid)" to make sure the container opened.
But sometime it may fail because the use object delay time..

Re: Question About Container

Posted: 18.05.2012 8:29
by yuras
Ray wrote:I found that sometime the opened container will close.
how can i detect the container opened or not?
currently i use "use object(containerid)" to make sure the container opened.
But sometime it may fail because the use object delay time..
checklag for empty contaitner, check FindType($FFFF,container_id)>0 for others.

Re: Question About Container

Posted: 18.05.2012 14:59
by NoSilence

Code: Select all

procedure CloseContainer;
begin
UseObject(Backpack);
end;

function IsContainerOpened(Container: cardinal):boolean;
begin
result:= LastContainer = Container;
end;
My simple profit. It works after reconnection too.

Re: Question About Container

Posted: 19.05.2012 19:33
by Ray
Thanks all... :lol: