OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: klavan on 17 Jun 2006, 12:39:21
-
I was wondering about the possibility to give to the players the opportunity to have optional addons requirements for a mission, so i've started experimenting the thing.
The attachment below is a very tiny missionette already in .pbo format, where you can start a sandstorm by using your radio menu (hit 0-0-1). To see the results you need the NIM Dynamic Weather 1.6. (http://www.the-troubles.co.uk/Public/Public/NIM_Weather_1.6.rar)
After pressing the keys combination ana error message will pop up, but after clicking the OK button the sandstorm effect will start immediately.
Note that the mission sqm file is "clean" from any external addon requirement traces.
The scriptins is very basic, as the needed gamelogic for the sandstorm is created over a marker.
My question is: is there away to get rid of the error message, or at least to remove the need for the player to click anything by scripting?
Or, if the answers are negative: do you think the compromise (error message remains, but a potentially more anjoyable mission with optional addons) may be acceptable? After all the issue could be advertised in the readme and the player can avoid the issue by avoiding to select such options in a dialog.
Just a thought.
Klavan
PS
I'm not sure if this is the right place where to post such question, I apologize in advance for the eventual error.
[attachment deleted by admin]
-
you will always get the error afaik unless you have the code below in mission.sqs
in mp for me after i pressed ok there was no storm at all
addOns[]=
{
"nim_clouds"
};
addOnsAuto[]=
{
"NIM_Clouds"
};
also with sandstorm you dont need such finite position
_pos = getmarkerpos "marker"
_obj = "NIM_SandStorm3" CreateVehicle _poscan be replaced with
_obj = "NIM_SandStorm3" CreateVehicle [0,0,0]if i understand what you trying to do, you should try usin vektorbersons debug console,