Frictional Games Forum (read-only)

Full Version: Trying to allow rock to be grabbed but not moved
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I'm trying to set a rock as "stuck" in between two cog wheels. I want the player to be able to grab the rock, but not actually move it. Right now I have the rock placed between the two cogs. How would I go about doing this?
Best option might be to set the rock as static physics and then place a script area over it. Add a custom interact callback with a grab crosshair to that script area, and maybe a message that the rock is stuck when clicked.
Thanks for the advice. It looks like when I make the rock static the SetEntityCustomFocusCrossHair function doesn't work anymore.