Scripts / Player Death

Author
Message
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 28th Aug 2015 16:04 Edited at: 28th Aug 2015 16:11
I have written this countdown script which counts down from 20 to 0, when it hits 0 the players health is set to 0, to kill the player..... problem is the screen goes red and the player freezes, what do I need to do to reset the player at the start marker.

The script so far is below, i'm learning LUA now, but I can't seem to reset the player to the start marker with 1 life less.

Can someone advise thanks in advance.

Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.

http://contest.gamedevfort.com/submission/185#.Vd9sJflVhBd
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 28th Aug 2015 17:21 Edited at: 28th Aug 2015 19:49
ok got it sorted

Here is a script to countdown to 0 and kill the player.... just add it to a trigger zone to start.
There is also a script to halt the countdown too, just add that to a zone a little further away




Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.

http://contest.gamedevfort.com/submission/185#.Vd9sJflVhBd

Attachments

Login to view attachments
TheSourceCode
9
Years of Service
User Offline
Joined: 4th Mar 2015
Location:
Posted: 29th Aug 2015 17:07
My deepest thanks Tarkus, very useful script.
PM
AceRimmer
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 28th Feb 2015
Playing: classic British heavy metal mostly
Posted: 29th Aug 2015 17:48
Very useful. many thanks
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 29th Aug 2015 17:49 Edited at: 29th Aug 2015 17:49
All my latest freebies will be posted here from the link below.

https://forum.game-guru.com/thread/213190

@ TheSouceCode and @ AceRimmer - glad you can use it, checkout the link above it
has a script to add time to the countdown

Enjoy
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.

http://contest.gamedevfort.com/submission/185#.Vd9sJflVhBd
AceRimmer
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 28th Feb 2015
Playing: classic British heavy metal mostly
Posted: 30th Aug 2015 18:34
@ Tarkus - thanks! this is exactly what I have been looking for for ages! A timer script with an add-time script.
I couldn't figure it out by myself. I will get a lot of good use out of these now I see how they work.
The possibilities are endless!

Login to post a reply

Server time is: 2024-05-07 04:36:23
Your offset time is: 2024-05-07 04:36:23