Home   Help Search Login Register  

Author Topic: Probs with addrating  (Read 1571 times)

0 Members and 1 Guest are viewing this topic.

Ricardo

  • Guest
Probs with addrating
« on: 11 Sep 2002, 20:27:36 »
Am am trying to simulate an west soldier disguiesed as a civilian (using a civilian)...i want him to be neutral to the russians until a certain part of the mission...so i've made a trigger which is activated when a certain condition is true and in the activation box: ap addrating -2001
(ap is the name of the guy)
This command caused me trouble because he is seen as an enemy both by east and west sides and i don't want him to be enemy of the west....
If you know a solution plz help me,thanks.

btw please don't tell me to attach the guy to a west soldier cause this is a standalone mission.... ;)

Gameer_77

  • Guest
Re:Probs with addrating
« Reply #1 on: 11 Sep 2002, 20:36:59 »
Can you not just put in:

this setcaptive true

then when you want him to be shot at put in :

guysname setcaptive true

 8)PEACE

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Probs with addrating
« Reply #2 on: 11 Sep 2002, 21:01:46 »
Gameer_77 meant to type that when it's time to let the player get shot, use the following code:

this setcaptive false

In order to get the civilian on the west side without having to group the unit, you can place a west soldier (any soldier--it doesn't matter which one) where you want the player to start.  Save your mission, then edit the mission.sqm file with a text editor.  Find the player's unit and change the "vehicle" type to the appropriate civilian type.

Reload your mission in the editor, and there you have it--the west soldier will be a civilian, but still on the west side.  However, note that if you change any of the soldier's properties in the editor (by double clicking on it), the "vehicle" type will automatically reset to the normal West soldier (soldierWB).  Thus, do not edit the properties after making this change, or remember to change the soldier back to a civilian if you do edit the properties.
Ranger

Gameer_77

  • Guest
Re:Probs with addrating
« Reply #3 on: 11 Sep 2002, 21:13:02 »
Ehhh...Oops  ::)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Probs with addrating
« Reply #4 on: 12 Sep 2002, 02:10:16 »
I had a similar problem and addrating doesn't really help.    The only effect it has (as far as I could see) is that if it goes negative your own side starts to shoot at you too.    Making it high does not make any difference.  Ranger/Gameer_77's solution is the way to go.

Bonus hint:  the quickest way to find a dude when you're looking at the mission.sqm in your text editor is to give him a really distinctive name - I use "qwerty" - and then use the search/find function.
Plenty of reviewed ArmA missions for you to play

Ricardo

  • Guest
Re:Probs with addrating
« Reply #5 on: 12 Sep 2002, 13:01:52 »
I've tryed Ranger's solution great idea to modify the mission.sqm! i had no idea!!! :D :D :D
Though...I can't find a way to make the east side be friendly towards him...and i want that to happen for a certain time of the mission.....I can't use the setcaptive command cause it will make the guy turn back to a west soldier....  :(
I NEEEDDDD HEEELLLP!

Gameer_77

  • Guest
Re:Probs with addrating
« Reply #6 on: 12 Sep 2002, 18:18:59 »
Huh? It changes back to a west soldier cause when you double-click on the player then press ok, you are changing the player to a west soldier.

You don't have to put it in a init field. You can put player setcaptive true or ap setcaptive true or whatever your guy is called.

I don't really get your question though...

 8)PEACE

Ricardo

  • Guest
Re:Probs with addrating
« Reply #7 on: 12 Sep 2002, 18:36:36 »
Ok...mm.....I guess i just don't know how to activate the setcaptive true/false commands...where should i write them?
I've tryed using them in a trigger's activation box but it has the same effect...the guy becomes a west soldier :(

Ricardo

  • Guest
Re:Probs with addrating
« Reply #8 on: 12 Sep 2002, 18:47:47 »
I got it!!!
Duh i am stupid sometimes.... :beat:
the prob was that after giving a name to the player he became a west soldier and i had to save the mission and THEN YES, modify the mission.sqm file!!

Tkx alot guys! :cheers: