Scripts / Here is a script to Hurt the Player's when he walks into a trigger zone

Author
Message
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 28th Nov 2015 22:53 Edited at: 28th Nov 2015 23:03
Here is a script to hurt the player's health when he walks into a trigger zone.

I thought there used to be a script for this that came standard in GG, but I cannot find it anymore.

Enjoy.
Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 8.1 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)

Attachments

Login to view attachments
Mariokiki
16
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 29th Nov 2015 00:01
Awesome !

could I use it to simulate a hazardous area, like lava ?

Thanks !
PM
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 29th Nov 2015 00:07
Hi Mariokiki,

Yes, That's just what I wrote it for. A user on steam wanted the same thing.

So place down your lava, fire, etc decal and then place a trigger zone under the decal and give it this script.

You can adjust the damage within the script to suit your needs.
Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 8.1 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
Mariokiki
16
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 30th Nov 2015 01:22
Nice !!

I'll try it !

Thanks
PM

Login to post a reply

Server time is: 2024-12-22 07:24:20
Your offset time is: 2024-12-22 07:24:20