Home   Help Search Login Register  

Author Topic: Please Help Me  (Read 690 times)

0 Members and 1 Guest are viewing this topic.

OFP Guy

  • Guest
Please Help Me
« 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.  :)

Kaliyuga

  • Guest
Re:Please Help Me
« Reply #1 on: 20 Mar 2003, 02:09:00 »
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)

Offline mcnorth

  • Members
  • *
Re:Please Help Me
« Reply #2 on: 20 Mar 2003, 05:27:37 »
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.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Please Help Me
« Reply #3 on: 20 Mar 2003, 08:01:20 »
remove the "[ ]" and you shouldnÂ't have a problem :D.

BTW:

Welcome to the forums

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Please Help Me
« Reply #4 on: 20 Mar 2003, 09:27:38 »
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.
Plenty of reviewed ArmA missions for you to play

OFP Guy

  • Guest
Re:Please Help Me
« Reply #5 on: 21 Mar 2003, 02:19:12 »
Thanks!