The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Hammer animation
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#1
Hammer animation

I would like to get the hammer to move as i use it on an entity, like it does in the actual game. I looked at the code in the actual game, and it uses "SetMoveObjectState".
The problem with this is that it makes the hammer move only vertically up or down, whereas i want the hammer to hit something on the wall.
So I was wondering, how do you make the hammer move horizontally using scripts ( i think "stone_hammer_move" is a static entity so i cant use AddPropForce )

Also, in the level Editor i found a setting, "AngularOffsetArea -- When mode is angular, this is the point it rotates around"
How do i make mode angular, and would this enable the hammer to swing like i want it to?

If anyone can help i would appreciate it, Thanks!

07-12-2011, 12:05 AM
Find


Messages In This Thread
Hammer animation - by DRedshot - 07-12-2011, 12:05 AM
RE: Hammer animation - by Roenlond - 07-12-2011, 12:50 AM
RE: Hammer animation - by DRedshot - 07-12-2011, 10:38 PM
RE: Hammer animation - by Roenlond - 07-12-2011, 10:47 PM
RE: Hammer animation - by DRedshot - 07-12-2011, 10:51 PM
RE: Hammer animation - by Roenlond - 07-12-2011, 10:58 PM
RE: Hammer animation - by DRedshot - 07-12-2011, 11:05 PM
RE: Hammer animation - by Kyle - 07-12-2011, 11:09 PM
RE: Hammer animation - by DRedshot - 07-12-2011, 11:12 PM
RE: Hammer animation - by DRedshot - 07-13-2011, 12:25 AM
RE: Hammer animation - by Roenlond - 07-13-2011, 11:04 AM
RE: Hammer animation - by DRedshot - 07-13-2011, 01:22 PM



Users browsing this thread: 1 Guest(s)