OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: RangerX3X on 11 Feb 2010, 23:21:11

Title: Initialization Question
Post by: RangerX3X on 11 Feb 2010, 23:21:11
Is there a way I can force everything to initialize before the mission starts? Things such as modules and any unit that has some code in their initialization field.

I am working on a mission where there are a lot of groups and there are some strange things happening. When I add first aid simulation and battlefield clearance to each group (synching to the group leader, not grouping it to them) the groups become invincible (we are talking 26 separate groups here).

I am suspecting that not everything is initializing before the mission starts.
Title: Re: Initialization Question
Post by: zonker3210 on 11 Feb 2010, 23:31:48
I don't think that's possible although you may be able to delay the effective start (as opposed to the actual mission start) to give things enough time for the necessary initializations. This wiki topic seems relevant:

A view on (Multiplayer) Scripting, by Sickboy (http://community.bistudio.com/wiki/6thSense.eu:EG#Order_of_Initialization)

Hope that helps!
 - z