Page 2 of 2

Re: I think I shouldn't be asking such questions :(

Posted: Tue Aug 19, 2008 10:12 am
by steven8
Sorry for not responding sooner. I do NOT know how to make it disappear, unless you set it's level to 0 when the door is opened?

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 12:29 am
by metal_head
well,yeah that'smy idea,but I don't know how to do it,I have to makae opening the door to take the card attribute away from you (but I don't know if that won't trigger the logic gate again and make the door not openable anymore.

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 2:04 am
by steven8
metal_head wrote:well,yeah that'smy idea,but I don't know how to do it,I have to makae opening the door to take the card attribute away from you (but I don't know if that won't trigger the logic gate again and make the door not openable anymore.
Try it and see? The most you'll have to do is take out or change the value of an entity if it doesn't work.

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 8:45 am
by Juutis
You'd have to have two different attributes. Like 'card1' and 'card2'. When you pick the card up you would get both attributes and after 7 seconds 'card1' would be removed. Then the door could use 'card2' which you never lose and the HUD could use 'card1'.

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 1:23 pm
by steven8
Juutis wrote:You'd have to have two different attributes. Like 'card1' and 'card2'. When you pick the card up you would get both attributes and after 7 seconds 'card1' would be removed. Then the door could use 'card2' which you never lose and the HUD could use 'card1'.
That makes sense.

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 6:53 pm
by metal_head
is there a script command for hiding hud elements? if so,I could make the door to activate a logic gate and :D make a script with a lot of help :D which will detect if that logic gate's state is changed and than hide the HUD element.

But...after all the best way to do it,is to make appear for..about 4 seconds and below the HUD element to make a Message,saying: Access Card Collected! so that way it will only show the player that the card is collected (you know,because the card model which you have to collect is a small one and it's important to continiue the game.

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 7:42 pm
by Juutis
ActivateHudElement(string AttributeName, bool Flag);
Activate/Deactivate the HUD for the attribute AttributeName.

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 8:13 pm
by metal_head
Thanks,Juutis! gee,I think there are a lot of commands which are not written in the manual I think,is there a list with all the commands?

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 8:15 pm
by Juutis
They're all in the manual under Component Reference -> Scripting -> High/Low Level Pawn Script Commands.

Re: I think I shouldn't be asking such questions :(

Posted: Wed Aug 20, 2008 8:19 pm
by metal_head
oh,maybe I've missed some of them :D