Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Spice on Aug 02, 2015, 05:48 PM

Title: how these Pickup functions work
Post by: Spice on Aug 02, 2015, 05:48 PM
can some one tell me what is the working of these pickup functions....and in how many ways i can use them....


Pickup.StreamedToPlayer
Pickup.Alpha
Pickup.Automatic
Title: Re: how these Pickup functions work
Post by: Thijn on Aug 02, 2015, 05:56 PM
pickup.StreamedToPlayer( player ) will return true or false whether the pickup is streamed for the player. A pickup will be streamed when the player is nearby, and will "unstream" when going away from it.

pickup.Apha, by default 255. Will return/set the Alpha for a pickup. The lower it is, the higher the transparency.

pickup.Automatic: When set to true, and when the pickup.Quantity is set to the ammo desired, the server will handle weapon pickups automatically.
Title: Re: how these Pickup functions work
Post by: Spice on Aug 03, 2015, 06:18 AM
Thank you for ur help