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 Scripts / Crouch In Zone Or Kill Player

Author
Message
ASTECH
17
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 1st May 2012 19:40 Edited at: 1st May 2012 19:40


This is what I have already but it kills the player even when you are crouched in the zone. I've done different variations but I can't seem to fix the problem.

Pretty much I need the zone to kill the player if he is not crouching in the zone. When the player gets a certain item (being the key) the zone destroys itself so the player can walk normally through the zone.

I'm using 1.19. Anyone have any helpful ideas?

PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 1st May 2012 21:54
Shouldn't this line


read like this, if the player is crouching? And zero if he isn't?

ASTECH
17
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 1st May 2012 23:11 Edited at: 1st May 2012 23:11
Well you see, I want it to constantly check to see if the guy is crouching in the zone. Maybe it loops back to the same state to recheck? Anyways, if he stands up in the zone or just walks into the zone without crouching, I need him to be directed to state 2. If he's crouched in the zone, it just needs to loop and see if he stands up or not. And of course, if he picks up the key, the script then destroys itself.

PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 1st May 2012 23:32
The crouching condition is plriscrouching, not plrcrouching, and doesn't have 0 or 1.

So try changing that line to this;



Login to post a reply

Server time is: 2024-11-23 23:27:03
Your offset time is: 2024-11-23 23:27:03