Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RainGen script #391

Open
Reorn opened this issue Dec 15, 2024 · 0 comments
Open

RainGen script #391

Reorn opened this issue Dec 15, 2024 · 0 comments

Comments

@Reorn
Copy link
Collaborator

Reorn commented Dec 15, 2024

class RainGen expands Effects;

var(Rain_Sounds) nowarn int SoundRadius;
var(Rain_Sounds)	int RainVolume;

//set all our variables.
simulated function PreBeginPlay()
{
 (...)
 PlaySound(EffectSound1, Slot_Ambient, RainVolume,,SoundRadius);
}

The command is not executed.
Sounds cannot be emitted from the PreBeginPlay function.
For this reason, variables RainVolume and nowarn int SoundRadius are not used.

I think you should remove this line and mark both variables as unused.

@Reorn Reorn changed the title ReinGen script RainGen script Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant