Please or Register to create posts and topics.

panels problem

Page 1 of 2Next

ok so when i press the button and make them play the animation they do it but go back to the postion that they where in before after.

Open properties on the panel model and set 'HoldAnimation' to true.

I like how this essential information isn't on the VDC; http://developer.valvesoftware.com/wiki/Panels

Edit: Added to VDC

Image
PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."

thanks man!

wait i just did that and its still doing the same thing!! UGH!!!!

Upload VMF. Some panel animation include both the in and out in the same animation, and it is difficult to stop it.

Also dont double post. Click the edit button.

Image
PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."

It seems like it's the outputs of your button.

Have your func_brush (the panel) tied to your animating panel (the prop_dynamic in which you chose a model).

You should have a logic_auto with the output of...

Code: Select all
OnMapSpawn -> (name of func_brush)->SetParentAttachmentMaintainOffset -> panel_attach
Make that 'fire once only'.

You should also have a logic relay which sets the animation of the panels (named something like panel_anim or something), with the following outputs...

Code: Select all
OnTrigger -> (panel name) -> SetAnimation -> (name of first animation, i.e. opening/closing) -> No delay - no (for only once)

Now this will set your other animation to bring the panel back to it's original form. Find the name of the animation in the world model browser, just like you did for the first animation. Look for the one that closes/opens it to the original position. Write down the name.

Then in the logic_relay outputs create the following output...

Code: Select all
OnUser1 -> (panel) -> SetAnimation -> (name of animation for closing/opening panel to original position) -> No delay -> No (for fire once only)

Then for your button (which I think may be the cause of your problem), put the following outputs...

If it's a prop_button, then do this...

Code: Select all
OnPressed -> (logic relay name) -> Trigger (for the target) -> No Delay (unless you want one) -> No (for fire once only)
OnButtonReset -> (logic relay name) -> FireUser1 -> No Delay (unless you want one) -> No (for fire once only)

If it's a prop_floor_button, do the same as above but instead of 'OnButtonReset' put it to 'OnUnpressed.

Hope this help solves your problem.

Some of my Portal 2 maps || Mini-Faith || Careful Cube || Vertical Reach ||

|| Need help uploading a map...new user? Read my Map Uploading Guide ||
|| Want to play custom maps, but don't know how? Read my Playing Portal 2 Custom Maps Guide ||

Way to quote the VDC. Thanks for that completely redundant post.

Image
PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."

You should upload the vmf or at least tell us, which animation you're using. Maybe the animation plays for- and backwards. Then you'd have to stop it in the middle by setting the animation playback rate to 0.

The Aperture Alpha
A map pack coming soon. - click for more information
Image

Toggleable panel example:

Image

hi. thanks a lot for all your help its working now

Page 1 of 2Next