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 / quantity=x condition

Author
Message
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 26th May 2009 05:10
I did search and only found Flatlander's thread on this. So here is the question.

Has anyone found out what it exactly does? and is yes what does it do?


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th May 2009 06:48
Returns TRUE if the "quantity" given to the entity is equal to X.

I suppose it would be slightly useful if you wanted to make a script that could be used for many different types of ammo that give different quantities.

As for me, I haven't found much use for it yet.


The one and only,


Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 26th May 2009 06:56
Well I tried placing it in an ammo script, but it didn't work. I also tried to see if it will limit weapons, but no.


Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 26th May 2009 20:29
@ply
does the source code reveal anything upon the command?


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 27th May 2009 19:33
That's all it reveals.


Look in an ammo/weapon entity's properties. You see that property called "Quantity"? That is the value that this command checks.


The one and only,


Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 27th May 2009 20:17
Thanks Ply

It seems that the condition is useless without an action that changes it.


Login to post a reply

Server time is: 2024-11-25 01:56:27
Your offset time is: 2024-11-25 01:56:27