OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 14 Aug 2008, 21:14:58
-
Hi guys me again!
How the hell can I add an objective to the briefing screen when say a trigger is activated????
-
objStatus (http://community.bistudio.com/wiki/objStatus) command. Set it hidden in init.sqf, so that you can make it appear later in the trigger's on act.
-
How do I get in the init sqf? I use arma edit program for all that and i ticked the hidden box but it still shows up from the start am i really stupid or is there something i need to do also?
-
Your question is one about ArmA Edit and not about how to script it yourself ;P I don't use ArmA edit, so I can't tell you whether it is a problem with that application or with how you are using it.
Well, there isn't a init.sqf created by default (or init.sqs if you prefer to learn how the cave-men did it before we had the wheel ;P). It is just a plain text file in the same directory as the mission.sqm.
-
yes i know im a tool, lol but tell me where in here i put "hidden"
<!---------------------------------------------------->
<!-- Objectives -->
<!---------------------------------------------------->
<!-- Objective 1 -->
<p><a name="obj_1"></a>
<!-- [OBJ_1] -->
<a href = "marker:Resistance">Meet up with resistance Leader gear up and get intel</a>
<!-- [END] -->
</p><hr>
-
That is the briefing.html, which is fine. It defines that there is an objective, but it will always start out shown (i.e. "ACTIVE"). Create a file called "init.sqf" in the same directory as mission.sqm and briefing.html and put in it:
"1" objStatus "HIDDEN";
so that the objective you've defined will be hidden on mission start (init.sqf, or init.sqs if that is present, is run at the start of the mission). If you really don't want to create a new file, just put the code in the player object's init line or something...
-
Wicked sorted it works a treat thanks for ya patience and ya help.....