Jump to content
dasmaeh

Dynamic interaction with an object

Recommended Posts

Hello BI Community,

 

i want to include more roleplay into my missions. For that purpose iam planning to enable the players to interact with objects e.g. search for documents at a desk, sabotage a radio station, something like that.

So i need a function, thats adds the possibility to an object (parameter) to interact with it (name of the job is also a parameter). While the job is running (jobtime is set as a parameter), a progressbar with given text (parameter) is shown. If the job is done over to whole time, a script will execute (parameter). If you cancel the job with ESC, a different script will execute (parameter also). So far so good, and its running right now...

 

But i need the option to fullfill a job with more than one soldier, e.g. to reduce the amount of jobtime needed, or maybe its to heavy for a single soldier. But thats the point, where i have no idea how to do that.

I tried to set the jobtime variable on the object, but i dont know how to update the progressbar at the client of each soldier accordingly to the amount of soldiers working on that job.

To get clear: The goal is something like a "domination gamemode". Where one player enters an area and would need 60 sec to capture that object. If a 2nd player would join his area, it would only need 30 sec, and so on... with the difference, that my player needs to interact with the object instead of standing beside it.

 

I havent posted the code of the first conclusion, because iam seeing no option to "upgrade" the code to work with multiple soldiers. So its need to be redone from scratch.

 

Is there anyone of you, who have an idea or maybe allready solve such a problem similar to mine?

 

 

Greetings,

DasMaeh

Share this post


Link to post
Share on other sites

Easiest work around that pops in my head is something similar to the breaching system in Ghost Recon Future Soldier. If you haven't played that, essentially, there are four playable characters, and when you came up to breach a doorway, four spots showed up, you would have to take up one of those spots and wait until all four players are in position to then breach. That can happen here, however, what I'm thinking is that you add an option to the job to say "do job with a buddy" or "do job with 'x' number of people", then you would simply execute a waitUntil loop until there are 'x' number of players trying to complete that job, then simply run the job at whatver time it would be when you have all the people there versus just one person or whatever combination.

Just a concept, but hopefully it helps.

Share this post


Link to post
Share on other sites

What I'd really like is an easy way to use the default BIS Revive/Intel spacebar/progress function in other uses or in our own missions.

  • Like 2

Share this post


Link to post
Share on other sites

hello my problem is I can not hide the MR3000 radio in the police and EMS to not display. the radio works but I want people not to see.

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

×