Home   Help Search Login Register  

Author Topic: weapon on back or else...  (Read 673 times)

0 Members and 1 Guest are viewing this topic.

Offline dalton

  • Members
  • *
  • i R n00b
weapon on back or else...
« on: 29 Dec 2003, 18:10:38 »
in the mission, i want them 2 have their guns on their back. and if they pull out their gun the enemies will start shootin them. it has civilians and drug dealers and police in em. and i want the drug dealers 2 shoot ne police who pull out their guns. is there a way 2 do that?
"freedom aint free"

Offline dalton

  • Members
  • *
  • i R n00b
Re:weapon on back or else...
« Reply #1 on: 29 Dec 2003, 18:19:27 »
this should prolly b in the advanced section but...
it doesnt matter
"freedom aint free"

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:weapon on back or else...
« Reply #2 on: 29 Dec 2003, 18:53:55 »
behaviour unit_name != "SAFE"

no need for the advanced section me thinks

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline dalton

  • Members
  • *
  • i R n00b
Re:weapon on back or else...
« Reply #3 on: 30 Dec 2003, 04:33:15 »
ja ty but will it work if he takes out his gun and the enemy civs shoot him??
"freedom aint free"

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:weapon on back or else...
« Reply #4 on: 30 Dec 2003, 10:29:14 »
Yup.   What CD means is that you start off these loons with

this setBehaviour "safe"

in their init field.   Then you have a trigger somewhere with his line of code in it.    The conseqences of the trigger will happen when the loon in question goes from safe to aware or combat.    It is likely, depending on exactly what you are trying to do, that setCaptive true/false will come into it somewhere.

If you are playing about with civvies you will probably need to use the group-leader-is-east/west-with-deleteVehicle-this-in-his-init-field trick to make the civvies on a particular side.    
Plenty of reviewed ArmA missions for you to play

Offline dalton

  • Members
  • *
  • i R n00b
Re:weapon on back or else...
« Reply #5 on: 30 Dec 2003, 19:50:47 »
ja u can just drag a line from the civs 2 the side u want em 2 b on
"freedom aint free"

Offline Blanco

  • Former Staff
  • ****
Re:weapon on back or else...
« Reply #6 on: 30 Dec 2003, 21:00:43 »
I tried this b4 and it doesn't work very well.

The problem when a unit draw his gun his behaviour is set to "AWARE", but when he put his gun on his back after that, his behaviour is still "AWARE". You have to drop the gun and pick it up a to be sure the unit's behaviour is "SAFE" again.

ohmy, is this English?

somebody made a testscript for it, I think it's called assasin.sqs -script or somtin' like that, take a look in the beta testing board

here it is..

http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=14272



 
« Last Edit: 30 Dec 2003, 21:07:26 by Blanco »
Search or search or search before you ask.