Scripts / Creating a Save Zone

Author
Message
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 5th Jun 2016 20:41 Edited at: 5th Jun 2016 20:42
Hello.

Im not into coding right now but i want to.

Actually i wonder, if there is a possibility to create a "Save Zone", where Players can hurt other Players but can hurt eg: Zombies in this Zone.

Short: Players are completelly save there but is still able to kill Zombies?
Gtox
3D Media Maker
10
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 6th Jun 2016 18:02
Here is a safe zone script - it's a bit crude, but it works. Create a trigger zone, and set the trigger zone to use the safe zone script.

Attachments

Login to view attachments
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 6th Jun 2016 19:58
Thank You very much.

But for me this script does simply nothing. Or is it for players only? Caue my Zombies can still hurt me in the zone.
Gtox
3D Media Maker
10
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 6th Jun 2016 23:21
Maybe I'm misunderstanding you. This is for a zone where you, the player, can't be hurt. I've tried it with zombies and soldiers and it works with both.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 6th Jun 2016 23:51
He wants it so the zombies can't enter the zone.

You could use the above script with a trigger zone, then surround it with invisible walls from your scenery folder. The only problem is although they can't get in, you can't get out either.

Hmn .... there might be a workaround for that, maybe you could change the invisible wall script to turn physics off when you're really close and turn it back on when your further away.

Is there an LUA command to turn physics on or off?

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 7th Jun 2016 11:24 Edited at: 7th Jun 2016 11:28
No no i want it like he is describing it.

An "No Hurting" zone. But it dont works for me.

@Belidos for the solution you mean, i got an Automated gate
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 7th Jun 2016 15:31
What should happen with gtoxs script is that they will hurt you but your health will instantly get restored, there's not really a quick way to make the player invincible but many workaround you can try - such as making the zombies change state or giving the player super high HP etc.
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: 13th Jul 2016 18:19
When I read "Save Zone" I thought it was going to be about how to automatically save player progress, maybe at a checkpoint. That would be quite useful. Anyone have any ideas on that?
Julian
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 13th Jul 2016 19:43
look in small's thread, one of the last ones is an auto save, not quite what you want but you may be able to adapt it

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 19th Jul 2016 16:14
Thanks, Belidos.
Julian
PM
MahaGaming
8
Years of Service
User Offline
Joined: 4th Apr 2016
Location:
Posted: 24th Aug 2016 02:44
Hi, i used the savezone script it works only problem it loads me on the same position then game goes back to save, im basicly stuck
PM
MChapman
9
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 24th Aug 2016 03:57 Edited at: 24th Aug 2016 04:33
This works now and is based off triggers. the two scripts are pretty simple to use and you will need a ai script for the zombies that are in the area you will need them.

the safe zone script


the zombies script


the zombie ai shouldnt do any damage to you, if safe_zone is true.
Markchapman10 is my Skype let's have some dev talk.
MChapman
9
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 26th Aug 2016 02:59
is this resolved? I've been thinking of this since I posted my script.
Markchapman10 is my Skype let's have some dev talk.

Login to post a reply

Server time is: 2025-01-05 06:43:33
Your offset time is: 2025-01-05 06:43:33