Frictional Games Forum (read-only)
Trying to allow rock to be grabbed but not moved - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Trying to allow rock to be grabbed but not moved (/thread-56778.html)



Trying to allow rock to be grabbed but not moved - teriffic - 06-20-2020

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?


RE: Trying to allow rock to be grabbed but not moved - Mudbill - 06-22-2020

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.


RE: Trying to allow rock to be grabbed but not moved - teriffic - 07-04-2020

Thanks for the advice. It looks like when I make the rock static the SetEntityCustomFocusCrossHair function doesn't work anymore.