Scripts / Restarting Level After Player Death

Author
Message
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 18th Jun 2020 11:14
I am forcing player death by setting the health to zero. However, it then does not restart the level.

What am I doing wrong?
Julian - increasingly disillusioned and jaded
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 18th Jun 2020 13:11
use HurtPlayer(e,g_PlayerHealth)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 18th Jun 2020 19:23
OK. I'll try that. Thanks!
Julian - increasingly disillusioned and jaded
PM
Game_Making
7
Years of Service
User Offline
Joined: 7th Oct 2016
Location: Canada
Posted: 4th Jul 2020 13:29
Script Logic: What is the best method to accomplish this LOOP?

First, I am looking for a simple script that will load a second level if a specific character is killed or the player is killed. (To teach nasty players a lesson and keep them in a “limbo” loop at times.)

In the second level, I will simply loop back to the first level if the character continues on the quest by using a simple completed zone level to take the player back to the first level again.

Simple teleport to a map location comes later…

Can someone suggest/help with this?
PC SPECS: Education 10 Home 64-bit, Intel AMD Ryzen Threadripper 2950X (CPU PASSMARK:18513), NVIDIA Geforce GTX 2080 GPU (PASSMARK 3D Graphics:18354.8) , 16GB DDR4 RAM
Game_Making
7
Years of Service
User Offline
Joined: 7th Oct 2016
Location: Canada
Posted: 4th Jul 2020 13:40
Thought I would point out this script on this thread by TEABONE for those that will be interested here ........Restart Level on Death script at the store.
PC SPECS: Education 10 Home 64-bit, Intel AMD Ryzen Threadripper 2950X (CPU PASSMARK:18513), NVIDIA Geforce GTX 2080 GPU (PASSMARK 3D Graphics:18354.8) , 16GB DDR4 RAM

Login to post a reply

Server time is: 2024-04-26 15:22:22
Your offset time is: 2024-04-26 15:22:22