Blake2394 Posted February 9, 2015 Report Share Posted February 9, 2015 Hello, I am trying to give ai that spawn at missions gold coins in there wallet. I have searched the forums and cant fins a solution for wai. How can I do this if possible. I am using the private hive coin system. Thanks in advance! Link to comment Share on other sites More sharing options...
0 Tech_Support Posted February 9, 2015 Report Share Posted February 9, 2015 Look for spawn_group.sqf in the WAI compile folder Add _cash = round(random 20) * 1000; // number between 0 and 20 000 _unit setVariable["CashMoney",_cash ,true]; Under _unit addweapon _weapon; _unit selectWeapon _weapon; Like this if (!_unarmed) then { for "_i" from 1 to _mags do { _unit addMagazine _magazine; }; _unit addweapon _weapon; _unit selectWeapon _weapon; _cash = round(random 20) * 1000; // number between 0 and 20 000 _unit setVariable["CashMoney",_cash ,true]; }; Link to comment Share on other sites More sharing options...
0 Blake2394 Posted February 9, 2015 Author Report Share Posted February 9, 2015 Thanks! I thought it had to do with the group spawn. I did not see the post. Link to comment Share on other sites More sharing options...
Question
Blake2394
Hello,
I am trying to give ai that spawn at missions gold coins in there wallet. I have searched the forums and cant fins a solution for wai. How can I do this if possible. I am using the private hive coin system.
Thanks in advance!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now