I have used unit scripts on units to set loadouts on specific units. This works great except when someone joins in the middle of the mission. When someone JIP the person who joins gets his equipment, but all others become naked.
Description
Description
Details
Details
- Legacy ID
- 3021465899
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
1 set 2 units init to give them a set loadout ( like a rifle, clothes, etc)
2 start session with only one person playing
3 have another player connect to server and join game as other unit.
4 observe first unit loses his gear, and second man gets gear.
Event Timeline
Comment Actions
Limit init to the server
init = "if (isServer) then {...your code...}";
or
init = "if (!isServer) exitWith {}; ...your code...";