Author Topic: NoCrouch Playertype can crouch.  (Read 949 times)

I'm learning to script thanks to heeds etherpad thing.
I decided to create a TopDownNoCrouch player type.
Idea gotten from A.R.C.'s TopDown CTF when everyone kept crouching to avoid getting shot.

So I added the line that stops the player from crouching... and the player now can still crouch.
Would I need to add anything else to this script other than

Code: [Select]
canCrouch = 0What else would I need to stop the player from crouching?

EDIT:  Here's the console.log
« Last Edit: August 15, 2009, 10:35:13 PM by trumpetfan »

Code: [Select]
thirdpersononly = 1missing a ";" at the end of that

Oh and
PlayerTopDownNoNrouchArmor
« Last Edit: August 15, 2009, 08:36:21 PM by Sniper4hire »

Code: [Select]
thirdpersononly = 1missing a ";" at the end of that
Ok, checking if that could be a problem.

Edit: Not the problem.  Still doesn't work.

Could you post what the console says, it would help me to understand what the problem is...
Code: [Select]
canCrouch = false; maybe try
Code: [Select]
canCrouch = 0;

Could you post what the console says, it would help me to understand what the problem is...
Code: [Select]
canCrouch = false; maybe try
Code: [Select]
canCrouch = 0;
canCrouch = 0; is what I started out with.
That's what convinced me to try out canCrouch = false;, but I'll try it again.

Here's the console.log
« Last Edit: August 15, 2009, 08:57:27 PM by trumpetfan »



false == 0
I knew that, but someone told me to try false.


changing it to 0 made no difference.  I wonder why it doesn't work...

I don't think there's any way to make a playertype that can't crouch.

I don't think there's any way to make a playertype that can't crouch.
I was just about to lock this.. funny.
Chrono told me it was, but you would need to do a lot of stuff that's too complicated for me.