teriffic
Junior Member
Posts: 2
Threads: 1
Joined: Jun 2020
Reputation:
0
|
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 |
|
Mudbill
Muderator
Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation:
179
|
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 |
|
teriffic
Junior Member
Posts: 2
Threads: 1
Joined: Jun 2020
Reputation:
0
|
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 |
|