Disable Drop

Avatar
juniverse
23 Posts
Posted Aug 10, 2015
Hi. I'm trying to make a area where when you can pick up an object, but not set it down. (Like carrying Wheatley.)

There doesn't seem to be an input for this in prop_physics. How would I do this?

Advertisement
Registered users don't see ads! Register now!
Avatar
Gemarakup
1,183 Posts
Posted Aug 16, 2015
Replied 5 days later
There's an option from the game_ui entity to stop the player from using the pickup button I think. Flag "+Use deactivates", and each time you enable/disable this entity, it toggles.
Avatar
CamBen
973 Posts
Posted Aug 17, 2015
Replied 9 hours later
I'm almost certain there was a different way than what yishbarr said, try decompiling the valve map of the core transfer (I think it was sp_a2_core) and check what the entity was called that triggers when wheatley is grabbed from the floor after he shatters the glass.

Edit: did a bit of online searching, the entity is a logic_playerproxy. Give it an output for "setdropenabled 0"