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

DMS_fnc_GroupReinforcementsManager not working #77

Open
Ravenger2709 opened this issue Mar 26, 2022 · 4 comments
Open

DMS_fnc_GroupReinforcementsManager not working #77

Ravenger2709 opened this issue Mar 26, 2022 · 4 comments

Comments

@Ravenger2709
Copy link

Ravenger2709 commented Mar 26, 2022

HI! DMS_fnc_GroupReinforcementsManager not working properly. I defined all variables, but code dont work.

0:53:22 Error in expression <Depleted =
{
switch (true) do
{

case ((_maxReinforcementWaves>0) && {_maxReinfo>
 0:53:22   Error position: <_maxReinforcementWaves>0) && {_maxReinfo>
 0:53:22   Error Undefined variable in expression: _maxreinforcementwaves
 0:53:22 File x\addons\dms\scripts\fn_GroupReinforcementsManager.sqf..., line 196
 0:53:22 Error in expression <inforcementsDepleted && {(diag_tickTime-_lastUpdated)>_updateDelay}) then
{
priv>
 0:53:22   Error position: <_lastUpdated)>_updateDelay}) then
{
priv>
 0:53:22   Error Undefined variable in expression: _lastupdated
 0:53:22 File x\addons\dms\scripts\fn_GroupReinforcementsManager.sqf..., line 211
 0:53:22 Error in expression < parameters: %1",_this];
true
};


if !(_reinforcementInfo params
[
"_wavesInfo">
 0:53:22   Error position: <_reinforcementInfo params
[
"_wavesInfo">
 0:53:22   Error Undefined variable in expression: _reinforcementinfo
 0:53:22 File x\addons\dms\scripts\fn_GroupReinforcementsManager.sqf..., line 132
@eraser1
Copy link
Collaborator

eraser1 commented Mar 27, 2022

Hello,

I can see from your original post that the errors are caused by an invalid call into the function. You have configured something incorrectly or are calling the function incorrectly, as the params command is catching an invalid definition of some variable(s).

@Ravenger2709
Copy link
Author

Hello! Nope, this function doesnt work.
I changed all parameters 5 times and only paratroopers and vehicle parameters dont work in dynamic mission.
Or i dont know how make patatroopers in dynamic mission. Can you send an working example of dynamic mission with paratroopers reinforcement? I cant find this type of mission in reddit/armaholic/ or just in google.

My original post was a my mistake, i write parameters wrong.

Thx!

@eraser1
Copy link
Collaborator

eraser1 commented Mar 28, 2022

The errors you are receiving are showing that the function isn't being called correctly. Try logging what you're calling the function with.

eg: diag_log _this;

I don't have any working examples. I don't recall if any were ever made, but I did test all reinforcement types, so the function certainly works (or did work).

@Ravenger2709
Copy link
Author

Okay. If u dont have an working example, can u tell me right procedure to add paratropers reinforcements in dynamic mission?

i see DMS_fnc_SpawnHeliReinforcement and DMS_fnc_GroupReinforcementsManager,

In static mission reinforsments just added to StaticMonitor. Thx!

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

2 participants