Delay Frankencube movement

Avatar
iSpectra
49 Posts
Posted Feb 26, 2013
Hi there,

is there any way to delay or trigger Frankencubes before starting to move in the direction they're facing? Because I'd like the player to have these moving cubes around him (they drop into water) while he walks past them.

Regards,
iSpectra

Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Feb 26, 2013
Replied 6 minutes later
The BecomeBox and BecomeMonster inputs are probably what you're looking for. If you want them to stay in their "out" animation you can put a phys_contraint on each, with "Start Inactive" and "Don't Connect Entities until Turned On" checked. That'll essentially weld them in place the first time you enable it, and Break will disable it.
Avatar
iSpectra
49 Posts
Posted Mar 02, 2013
Replied 4 days later
How can I put a "phys_contraint" on them?
Avatar
FelixGriffin
2,680 Posts
Posted Mar 02, 2013
Replied 49 minutes later
Name the cube, place a phys_constraint, and set one of the object names to your cube.
Avatar
iSpectra
49 Posts
Posted Mar 03, 2013
Replied 7 hours later
I tried to create the "BecomeBox" input on the cube as an instance, but I can't create a new input. Neither can I create a new one when editing it not as an instance. Maybe I could use the available flags, but I need to be able to trigger "BecomeMonster" later anyways.
Avatar
FelixGriffin
2,680 Posts
Posted Mar 03, 2013
Replied 6 hours later
You can't create inputs, you have to create outputs. I'd recommend just placing the box, not as an instance, so you don't need to mess with func_instance_io_proxies.

Go to the button or whatever that you want to freeze the box, and add an output. For a prop_button that would be OnPressed. For the Target field put in your box, and then select BecomeBox or whatever as the Target Input.

Avatar
josepezdj
2,386 Posts
Posted Mar 04, 2013
Replied 16 hours later
Sometimes a good workaround simplifying the event settings is the best mapper's tool :wink: Why not making an invisible func_physbox with a certain weight and place it in the frankenturret's way so it has to push it to move forward lowering its speed?
Avatar
iSpectra
49 Posts
Posted Mar 07, 2013
Replied 3 days later
Can't I create a trigger area with an output that sets the monsterbox to monster, after I set it to "start as box"?

@josepezdj; I'm afraid that this method would take to much time and I can't know for sure, when the player will enter this specific area.

Avatar
protoborg
288 Posts
Posted Mar 07, 2013
Replied 1 hour later

iSpectra wrote:
Can't I create a trigger area with an output that sets the monsterbox to monster, after I set it to "start as box"?

@josepezdj; I'm afraid that this method would take to much time and I can't know for sure, when the player will enter this specific area.

You could also just use an func_auto (I think) object. It will trigger the transformation as soon as the level loads. Just set it to have an output connected to the box that fires BecomeMonster onMapSpawn.

Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Mar 07, 2013
Replied 4 hours later

protoborg wrote:
iSpectra wrote:

Can't I create a trigger area with an output that sets the monsterbox to monster, after I set it to "start as box"?

@josepezdj; I'm afraid that this method would take to much time and I can't know for sure, when the player will enter this specific area.

You could also just use an func_auto (I think) object. It will trigger the transformation as soon as the level loads. Just set it to have an output connected to the box that fires BecomeMonster onMapSpawn.

Yes and yes (although it's a logic_auto entity). For the trigger set the target to "!activator" or "!caller" (no quotes). Hammer will mark it as invalid, ignore it. That fires the output on whatever hit the trigger.