Jump to content

Sign in to follow this  
Blitzen

Spetnatz Mine Pack With other Addons

Recommended Posts

Im have some trouble getting the Spetnaz Mine Pack to work with other 3rd party addons (specifically LSR Seals, HYK Infantry, etc.). Whenever I add mines from this pack to a soldier, he can place the mine but it functions like a default/vanilla mine does. I de-PBO'd the file and looking at the config.cpp, it adds this:

  Quote
class EventHandlers

{

Init = "[_this select 0] exec ""\Russia_mines\script\Init.sqs""";

};

to each custom class. I am assuming that this is what allows soldiers to lay mines properly? I tried taking the init.sqs script from the mod and putting it in the mission folder but that caused a crash. I also tried to execute this script from the init line of the soldier. Can someone please give me some help to get this to work on 3rd party addons?

Thank you very much :)

Blitz

Share this post


Link to post
Share on other sites

I hate to double post, but does anyone have any suggestions? I would really like to get this to work.

Share this post


Link to post
Share on other sites

You need to add a "Weapon_empty" into your unit's "weapons" line. And mines you want as magazines.

EG:

weapons[]={"AK47","Throw","Put","Weapon_empty"};
magazines[]={"AK47","Shep_mine","PMN_mine","PMN2_mine","PMN4_mine","PMP_mine","TM89_mine","TMK2_mine"};

And eventhadler as you've already done, of course.

Share this post


Link to post
Share on other sites
  Nimravus said:
You need to add a "Weapon_empty" into your unit's "weapons" line. And mines you want as magazines.

EG:

weapons[]={"AK47","Throw","Put","Weapon_empty"};
magazines[]={"AK47","Shep_mine","PMN_mine","PMN2_mine","PMN4_mine","PMP_mine","TM89_mine","TMK2_mine"};

And eventhadler as you've already done, of course.

Thank you for helping me. I will try adding the "weapon_empty" to the code. However, I am trying to give mines to a unit by adding it to the init line in the mission editor. I dont know how to add an eventhandler to the init in the mission editor. Any tips?

Thanks again,

Blitz

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
Sign in to follow this  

×