Arma 3
Improved Melee System
DAVEFAR 18 Aug, 2024 @ 2:09am
Switching players
Perfect mod, but there is one issue when switching players. Try this test: switch players 20 times in the vanilla game and then 20 times in IMS. After the second test, the game starts to crash.

Here is the cause:

WebKnight_StarWars_Mechanic/ XEH_postInit.sqf
< >
Showing 1-1 of 1 comments
DAVEFAR 7 May @ 11:01am 
XEH_postInit.sqf with correction:
https://drive.google.com/file/d/1mnpgyyrP6_-w9qxUR9Gg-df6fR-0A5kC/view?usp=sharing

CHATGPT
There is an issue with XEH_postInit.sqf: the TeamSwitch handler executes XEH_postInit.sqf recursively without a safeguard, which causes crashes after multiple switches.
Suggested fix: check if the player has already been initialized before executing again.
Add this check:
if (!(_newUnit getVariable ["WBK_AlreadyInitialized", false])) then { ... }
Last edited by DAVEFAR; 7 May @ 11:05am
< >
Showing 1-1 of 1 comments
Per page: 1530 50