Jump to content

Recommended Posts

On 10/29/2018 at 7:16 PM, ravenleg said:

This question is more about modules in general, but is there a way to programmatically/dynamically synchronize a module to a game object (as opposed to doing it manually in the editor using Connect > Sync To)?


For instance, if I wanted to attach an editor-placed Loadout Manager to a vehicle that was spawned in midway through a game by a script.


Sorry for the late answer, I don't really check these forums anymore. There is a way to programmatically sync modules, but the modules would need to be specifically setup to accommodate this behavior and thus will not work in their current state.


However, you can manually add the loadout manager action via code.

_someVehicle addAction ["Access Loadout Manager", "[nil,'open', _this] call SpyderAddons_fnc_loadoutManager"]];


  • Like 1

Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now