Jump to content
notproplayer3

how to make rearm tasks

Recommended Posts

I was wondering how to make a rearm type task, for example what to put in a trigger so that the task will be completed, I was thinking about checking if each gun crate has an item less after taking things from it, the problem is I don't know how to script that

Share this post


Link to post
Share on other sites

What do you want to rearm? Units? Vehicles?

Something as simple as an eventhandler like that would do:

MyAmmoCrate addEventhandler ["ContainerClosed",{

params ["_crate","_player"];
systemchat format ["%1 finished rearming at %2!",name _player,typeOf _crate];

}];

 

Cheers

  • 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

×