Jump to content
Sign in to follow this  
Plattmaker

Script handling in ofp

Recommended Posts

Dear Bohemia Interactive,

I am going to script a kind of respawn manager for advanced MP missions. For this task I need some detailed information about how the scripting engine works. I hope you are able/allowed wink.gif to help me:

1)

If I declare a global array which contains data a background process has to deal with, is it guaranteed that no other script has access to this array while the background script process the data or must I use some kind of semaphore system?

The task works in this way:

Sensor or other event (eg. death) triggered scripts add elements to the global array and the background script removes elements and does something with the data the elements contain.

2)

What is the less computive task for OFP when creating Units, with the createUnit-Command:

I use the command with no delays between the calls or I force OFP to create only one unit at a suitable time interval?

I hope you will help me!

Thank you

  • Haha 1

Share this post


Link to post
Share on other sites

BIS will never replie when u want them to, only when they want, but hey u nva know sad.gif

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  

×