Crowdedlight / Crows-Electronic-Warfare

Arma 3 Mod that enables electronic warfare features such as Radio/Drone jamming and spectrum signal tracking
https://crowdedlight.github.io/Crows-Electronic-Warfare/
Other
19 stars 6 forks source link

Editormodule AddJammer with only sync'ed trigger fails to spawn dataterminal and set it as a jammer #106

Closed ItsGiantCookie closed 3 months ago

ItsGiantCookie commented 3 months ago

Due to missing Docs, I'm unsure how to toggle a Jammer with a Trigger, since the Add Jammer Module appears to no place one if the trigger is activated.

b-mayr-1984 commented 3 months ago

Due to missing Docs, I'm unsure how to toggle a Jammer with a Trigger, since the Add Jammer Module appears to no place one if the trigger is activated

@ItsGiantCookie have you found this? https://crowdedlight.github.io/Crows-Electronic-Warfare/jamming/script.html

Crowdedlight commented 3 months ago

Seems like there is a bug. So usually if you got nothing sync'ed to the module, it will spawn an dataterminal and set that as the jammer. However if you have something sync'ed to it, it will make that the jammer instead of spawning a dataterminal.

However I seem to not take into account if what is sync'ed is a trigger or object. So if anything, like a trigger, is sync'ed, then it won't spawn a dataterminal and thus the jammer can not activate as there is no object to apply it to.

I will look at fixing it.

For now, you can manually put down an dataterminal and sync that together with the trigger. When the trigger is activated the dataterminal will open and activate with the jammer settings set in the module.

billede

ItsGiantCookie commented 3 months ago

Hey, sorry to have caused you this trouble, I found the Issue, it was a really simple mistake on my side, a missing apostrophe. Since the trigger checks the missionNamespace and adds the jammer based on that, the error was not caught until I debuged the trigger. Another question though, how can I disable/remove a Jammer with a script without destroying the structure?

b-mayr-1984 commented 3 months ago

Another question though, how can I disable/remove a Jammer with a script without destroying the structure?

See the screenshot at the very bottom of this wiki page. https://crowdedlight.github.io/Crows-Electronic-Warfare/jamming/general.html

ItsGiantCookie commented 3 months ago

I want to do that without Zeus involvement

Crowdedlight commented 3 months ago

I want to do that without Zeus involvement

You should be able to toggle between turned on or off by calling this where _jammer is the object having the jammer.

[null, null, null, [netId _jammer]] call crowsew_main_fnc_actionJamToggle;
ItsGiantCookie commented 3 months ago

Thanks for the assist, I'll be closing the Issue for now