Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Alphawolf

What does this script define?

Recommended Posts

Could you tell me what this script is saying so I can understand it:

//Regular snow
WFX_Upper_TID[0]=1;
WFX_Lower_TID[0]=2;
WFX_Type[0]="SnowSpawner";
WFX_IgnorePlayer[0]=0;
WFX_Distance[0]=1024;
WFX_Density[0]=32;
WFX_Active[0]=1;

What does the [0] define?

Share this post


Link to post

The [#] notation is often used to access a specific item in an array or other form of collection. So [0] would indicate the first item in an array.

Share this post


Link to post

Those are array indices. The '[0]' part is specifically used to access the first element, with each being set to the number after the '=' sign. After looking at the j5weatherfx.zip that you linked to in a previous thread, the included PDF file explains how to set them up.

See here for info on arrays in ACS.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×