Please or Register to create posts and topics.

a few questions

Page 1 of 2Next

ok so i have a tractor beam set up to -250 and then a button that will change it to 250 but i want it to when u hit the button again it goes back to -250 and then 250 etc. also if i place 1 cube on the map with out a dropper i want it to respawn right there again if it gets dissolve is there any way to do this?

You could use two relays:
-250_relay
flag start disabled.
OnTrigger; tractor; (what's the proper input for setting the motion again); -250;0.00
OnTrigger; !self; disable;0.01
OnTrigger; 250_relay; enable;0.01

250_relay;
Ontrigger; tractor; (...); 250;0.00
Ontrigger; !self; disable;0.01
Ontrigger; -250_relay;enable;0.01

and let your button fire both relays. One is disabled and won't trigger anymore and after the button is pressed the other relay is activated.

if you want to have a cube re-spawning I highly recommend using the default cube-spawner instances; they're really easy to use and look better then a randomly-appearing cube :)

you know what i was thinking to myself i always see lpfreaky posting all the time i bet he will post on this one and you did and IT WORKED thank you so much lp and about the cube i have it so its like

___[-]___
[___^_____]
|
|
|
the arrow points to cube so its like on a platform and i want it to be at that same exact spot every time

edit 1: ill just post a pic
edit 2: how do i take a screenshot and then view it?

drewdinie wrote:
you know what i was thinking to myself i always see lpfreaky posting all the time i bet he will post on this one and you did and IT WORKED thank you so much lp and about the cube i have it so its like

Muhahaha :D

drewdinie wrote:
___[-]___
[___^_____]
|
|
|
the arrow points to cube so its like on a platform and i want it to be at that same exact spot every time

What you can do here is just to have the default material dispenser model. And use it's item_dropper_idle animation so it stays open all the time and create the cube inside a tube above it so it falls down nicely without any disturbance of the item_dropper.

Step 1:
create a prop_weighted_box and call it cube_dropper_box.
create an env_entity_maker and call it cube_dropper_box_spawner.
create a point_template and call it cube_dropper_box_template
create a logic_relay and call it cube_dropper_box_relay

step 2:
Go to cube_dropper_box_relay and add:
OnTrigger; cube_dropper_box; Dissolve; 0.00
OnTrigger; cube_dropper_box_spawner; ForceSpawn; 0.10 (this is slightly delayed so you don't fizzle your new cube ;))

Go to cube_dropper_box_template and go to Template 1 and put cube_dropper_box there as value.
Go to cube_dropper_box_spawner and go to Point_template_to_spawn and set cube_dropper_box_template as value.
Go to the cube_dropper_box and give it the output OnFizzled cube_dropper_box_template trigger

Step 3: add a button and let it trigger the cube_dropper_box_relay
Make sure the cube_dropper_box_spawner is where you want the box to spawn.

Step 4: Profit.

drewdinie wrote:
edit 1: ill just post a pic
edit 2: how do i take a screenshot and then view it?

2: press F12 in Portal 2 and upload the image to the steam cloud.
You can either use the

Code: Select all
[img][/img]

codes or just place a link :)

Image

drewdinie wrote:
Image

I'd rotate the lamp 90 degrees and let it fit on the texture? :P

good idea
by prop weighted box u mean weighted cube?

drewdinie wrote:
good idea
by prop weighted box u mean weighted cube?

Yea; just a normal cube ;)

if i want glados quotes is there a way to see which quote says what and which sound file it is?

Although Lpfreaky90's method above works, a single logic_branch with the outputs OnTrue;TractorBeam;SetLinearForce;250 and OnFalse;TractorBeam;SetLinearForce;-250 will also work. Set the initial value to either 0(False) or 1(True) for how you want the beam to start. Have the button output to be "logic_branch_here";ToggleTest .... this will swap from one state to the other and perform said actions. Shouldn't be any different from the above method but saves on using two relays where one branch will do the trick.

Of course I'm quite new to all this mapping stuff, whereas Lpfreaky90 seems to be an old hand at it. There might be a reason it's done his way that I don't know of... ...

As for the glados quotes, still trying to figure them out myself!!

Page 1 of 2Next