Jump to content
SaintF4LL

How to create a task for picking up gear?

Recommended Posts

Hey,

I'm quite new to mission editing and yes, I used the search function before asking. But maybe I used the wrong words or my english is not good enough. Maybe my question is easy to answer.

 

I'm just designing my first sp mission and wonder if it is possible to create a Task for the player to pick up his gear from a box. How do I write the script for setting the Task to accomplished? Right now I inserted a trigger, that sets the task as accomplished, when the player is leaving the room again. But that will accomplish the task even when the player is leaving the room without picking up his gear.

 

The player will start at a beach and gets a radio call from HQ, that vacation is over and he should pick up his gear and put on his uniform in a cabin nearby. (Don't laugh. I'm just testing... ;) After that call the task should appear. It should be accomplished and switch to the next waypoint/task, when the player took all his equipment from a box inside a cabin. 

Thanks for helping and for being polite.

Greets,

Stephan

Share this post


Link to post
Share on other sites

A possible trigger condition could look like this:

getWeaponCargo MyAmmoCrate isEqualTo [] AND getMagazineCargo MyAmmoCrate isEqualTo [] AND getItemCargo MyAmmoCrate isEqualTo []

Will return true if no more magazines, items and weapons are in the crate.

 

Cheers

  • Like 2

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

×