Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to allow rock to be grabbed but not moved
teriffic Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2020
Reputation: 0
#1
Trying to allow rock to be grabbed but not moved

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?
06-20-2020, 10:45 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Trying to allow rock to be grabbed but not moved

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.

06-22-2020, 12:30 AM
Find
teriffic Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2020
Reputation: 0
#3
RE: Trying to allow rock to be grabbed but not moved

Thanks for the advice. It looks like when I make the rock static the SetEntityCustomFocusCrossHair function doesn't work anymore.
07-04-2020, 05:27 AM
Find




Users browsing this thread: 1 Guest(s)