I’m looking for some advice on how you would set up a puzzle I am working on in the Portal 2 base. It is really more of a player task than a puzzle, but here are the details...
My map will include battery props, charging units and machines that will use up the battery power. The player will be able to pick up the battery prop and place it on the charging unit. The battery prop skin will have a power bar that indicates levels, i.e. Empty, Quarter power, Half power, Full power.
Once the battery prop is received by the charging unit this will trigger a state change on the battery that will switch the power level skin to indicate that the battery has received power. Ideally I would like this sequence to be timed so that the battery would need to be on the charger a fixed amount of time before the state would change. A logic_timer seems like it would work but I’ve never used it for anything like this.
How would you go about having the image change on the battery and also having the prop receive a value to indicate battery level? Could someone explain how to best set up the logic entities?
Next, I’ll need to have a machine that can receive the battery and will drain the power when the battery is present. Like the charging unit, the machine will need to reduce the power in the battery over fixed time intervals.
Lastly, would instancing help me with something like this? I will be making several types of machine props and charging units that will function the same way but with different models and animations.
Thanks in advance for your help!









