Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / ~~ Player Hurt In Zone - Toggle ~~

Author
Message
Bejasc3D
17
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Down Under
Posted: 9th Apr 2010 09:27
As the title says, I am needing a plrhurtinzone script that is activated - on or off (toggled) by a button.

How is this possible? if someone could help me out here, that would be great!

Regards,
~Titanium

~ Benny Boy 2321 ~ Raw Sandvich ~
Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 9th Apr 2010 11:47
You'll need to mess around with activation values. In the hurtzone, try the following script:

desc = Toggle Hurtzone

:activated=0,plrwithinzone=1:plraddhealth=-5

Name your trigger zone something, and in the switch IfUsed box put that name. It should work in theory but I haven't tested it.


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Bejasc3D
17
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Down Under
Posted: 9th Apr 2010 18:58 Edited at: 9th Apr 2010 19:20
Alright, thanks ill give that a try.
Not really big on scripting though, but to get anywhere, you sure as hell need it.
[b]Edit: the script did not work. not sure if I am doing it correctly or not, Its been a while since i did anything with FPSC

~ Benny Boy 2321 ~ Raw Sandvich ~
Urlforce Studios
19
Years of Service
User Offline
Joined: 16th Oct 2006
Location:
Posted: 9th Apr 2010 22:49 Edited at: 9th Apr 2010 22:49
I've seen a few in the scripts section or something similiar.

Bejasc3D
17
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Down Under
Posted: 10th Apr 2010 07:27
I had a look arround there, but cant find much that helps :S

Ill try some more playing around with scripts and that, I recently downloaded FPI Editpad, and by the looks of it, it make it a fair bit easier to script, so Ill mess arround with that I guess.

~ Benny Boy 2321 ~ Raw Sandvich ~
Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 10th Apr 2010 12:19
If I were you, I'd try to use variables to get this working. In Project Blue it's easy.


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21

Login to post a reply

Server time is: 2026-07-05 16:51:45
Your offset time is: 2026-07-05 16:51:45