Mercenaries 2 Modding Wiki
A community reference for modding Mercenaries 2: World in Flames (PC) — how to get your own code running in the live game, and what its Lua-scripted systems actually do.
This is a study/reference resource, not a redistribution of anything from the game — pages describe observed engine behavior (module structure, functions, events, lifecycle) rather than reproducing game files.
Where to start
- New here? Read Getting Started first — it covers
lua-bridge, currently the only way to inject and run your own Lua against the live game. - Looking for a specific game object/system? Browse Resident Modules — one reference page per engine module (
crate,airplane,mrxbriefing, …), covering what it does, what it inherits from, its functions, and the events it listens for.
A note on accuracy
The per-module reference pages are drafted by a local LLM analyzing engine behavior, then spot-checked. They’re a strong starting point, not gospel — if something looks off in practice, that’s worth flagging so the page can be corrected.