• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

code help please

Jack Rackham

ex train dispatcher
Quest Writer
Storm Modder
Someone know if there is a simple way to remove your officers by code? (they should stay as passengers)

I can only fix it by removing the officer locators, which is not always a useful method .

Grateful for answers. JRH
 
If I understand correctly, you have officer walking with you in town and you want free his slot? If that's the case, you can do something like this:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->int i=...;
RemoveOfficersIndex(GetMainCharacter(), GetOfficersIndex(GetMainCharacter(), i));<!--c2--></div><!--ec2-->where i is from 1 to 4 is slot of desired officer.
 
Yes I may have officers with me who I don´t know the names of and they cause problems if they follow me everywhere (in a quest).

Thanks a lot pirate_kk, I'll try this soon.
 
Back
Top