OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFP Guy on 20 Mar 2003, 01:34:34
-
I have a two questions.
#1: When I want to change a soldiers weapon in the init field, it doesn't work. Say the soldier is an east soldier. I type [this removeweapon "AK74"; this addweapon "M16"; this add magazine "M16mag"] If I give a cilvlian a weapon and ammo The civilain's ammo says it has no ammo but when you reload it does. How can I make a guy reload at the start of a mission?
#2: When I hide an objective, It still shows up in the briefing. How can I fix this?
Any Answers are appreciated. :)
-
1) You have to add the magazine before you add the ammo
2) head to the editors depot I'm sure there has to be a tutorial on this
( i could be wrong)
-
The info your looking for to hide briefings is in the code snippets. It's titled "How to use objectives and init.sqs" by snYpir.
-
remove the "[ ]" and you shouldnÂ't have a problem :D.
BTW:
Welcome to the forums
-
1) remember to remove the loon's existing magazines as well as his weapon. Does removeallweapons this do that? Well, I can't remember.
2) The usual reason for this problem is a syntax error. In the Briefing our objectives are probably called OBJ_1 etc. If so, then in then in init.sqs you should have
"1" ObjStatus "hidden"
or whatever it is. If you called you objective OBJ_banana then it would be "banana" ObjStatus "hidden". It is NOT "OBJ_1" ObjStatus "hidden".
Hope that helps. There is a working example in the Tutorial Mission in the Ed Depot for you to copy and paste if you want.
-
Thanks!