Scripts / Swinging Axe

Author
Message
TazMan
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 20th Jan 2011
Location: Worldwide Web
Posted: 4th Feb 2016 10:37 Edited at: 4th Feb 2016 10:44
Hello everyone (Title should be Swinging obviously)

I am creating a few models that would be placed in say dungeons and give harm to the player but I am stuck on a script, I have been doing a bit of scripting myself but am not quite up to the speed of some of you. Here is the Swinging Axe I have done. I need the script to harm the person if they get caught by it.



Can anyone help
HP Pavilion Laptop, AMD A8-4555M APU with Radeon(tm) Graphics HD Graphics 1.6GHz, 8GB Memory, 64 Bit Operating System (Windows 10), 1 TB Hard Drive.

I've got something to say - It's better to burn out than fade away.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 4th Feb 2016 10:56 Edited at: 4th Feb 2016 11:00
what does it sing? pop, classic, rock?
the video is set to private but is this done with 1 animation on loop? will all the models have the same animation frames? as you will likely want to check the animation is at a decent point for applying the damage it's useful to try make them all the same or you will need to edit the script for each one to assign the different "damage" frames.

this script assumes a swinging axe on 1 loop going one direction and then the other (i.e. anim0 = 0,100 where 0,49 is left to right and 50,100 is right to left)
swinging_axe_trap.lua


edit; i should say i didnt test this so if you get any errors let me know and i'll fix it
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11
TazMan
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 20th Jan 2011
Location: Worldwide Web
Posted: 4th Feb 2016 15:09
Well I thought I would make it sing a bit of grunge lol.

Thanks for the script smallg. It seems to be working perfectly.
HP Pavilion Laptop, AMD A8-4555M APU with Radeon(tm) Graphics HD Graphics 1.6GHz, 8GB Memory, 64 Bit Operating System (Windows 10), 1 TB Hard Drive.

I've got something to say - It's better to burn out than fade away.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 4th Feb 2016 15:21 Edited at: 4th Feb 2016 15:24
Quote: "what does it sing? pop, classic, rock? "


When I first read it I thought it was supposed to be singing axe, like the singing sword owned by Prince Valiant in Arthurian legend, a sword forged of the same metal as Excalibur and thought to have floated in the air fighting by itself whilst making a singsong whining noise (it also appeared briefly in rthe film who framed roger rabbit).

Hmn, idea for some characters, floating ghostly weapons ..
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 4th Feb 2016 21:12
Title changed at op's request.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Login to post a reply

Server time is: 2024-12-22 13:34:45
Your offset time is: 2024-12-22 13:34:45