Forum Jump :

Author Message


Posts: 4
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2010-07-14 15:02        
     
How do i give citizens guns? or even give anyone a certain gun?

i want to simulate a riot so like give a citizen a certain weapon which he can use.


Author Message


Posts: 19050
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 38
In-game name: Foxhound

 
#2 Posted at 2010-07-14 15:28        
     
Check the stickie topic in this forum section. All the info you want is there.

Visit my family webshop desteigerhoutshop.nl.

Advertisement


Author Message


Posts: 4
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2010-07-14 15:35        
     
thanks man i know now. but how would i get a citizen like a Policeman to be on the opposite team to say another citizen? like make some citizens blufor and make others opfor?

I found a thread but i have a last question. how would you have say one civ not draw a gun until the other civ has killed atleast one of their team?


Author Message


Posts: 207
Rank:


Level: Member

Country: us
Location: U.S.
Occupation: Awaiting BCT
Age: 20
In-game name: BOB

 
#4 Posted at 2010-07-15 14:31        
     
i thought of your question and remembered somthin in the quarentine mission, add this to each of the units init that the civilians should kill

this addEventHandler ["killed", {_Killer = _this select 1;_id=([civ1,civ2] find gunner _Killer)+1; if(_id>0)then{CIVSHOTSOMONE=TRUE}}];;

so when the unit is killed if he was killed by the civ it will do CIVSHOTSOMONE=true
highlighted in red is the array of civs that would be the ones shooting first

now make a trigger and in the condition line delete "this" and add CIVSHOTSOMONE
in the activation add the script to make the unit pull his gun, so now when one of the soldiers gets shot by the first civ, this will activate the trigger that should add the weapon to the civ, or pull his weapon.

if dont understand somthin just ask im not the best at explaining

Arma 1 Armed assault, SAHRANI LIFE Back online with a dedicated server(No Addons) 9/12/2013 come join us.

Author Message


Posts: 4
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#5 Posted at 2010-07-16 16:00        
     
i kind of understand but im not amazing at scripts on this game xD so i dont know how to "add the script to make the unit pull his gun, so now when one of the soldiers gets shot by the first civ, this will activate the trigger that should add the weapon to the civ, or pull his weapon."


Author Message


Posts: 207
Rank:


Level: Member

Country: us
Location: U.S.
Occupation: Awaiting BCT
Age: 20
In-game name: BOB

 
#6 Posted at 2010-07-16 18:18        
     
in the init line of the trigger add

civ3 addweapon "Weapon name"; civ3 addmagazine ["Mag name",1]

dont forget the ""

civ3 is the name of the civ who will be drawing the weapon

so change weapon name to what ever weapon class name u want, same with mag name but ofcoarse you add the magazine class name and 1 is how many magazines he will have, it cant be over 8 for pistols and 12 for primary weapons or it might mess up

heres the class names for all the weapons in arma2 http://community.bistudio.com/wiki/ArmA_2:_Weapons

Arma 1 Armed assault, SAHRANI LIFE Back online with a dedicated server(No Addons) 9/12/2013 come join us.

Author Message


Posts: 4
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#7 Posted at 2010-07-17 13:21        
     
Thanks guys ive made a small riot mission :) but it's not that good :/ but after watching several tutorials and downloading several addons i have a good mission in which terrorist and guerrilas defend Strelka against a coalition of U.K U.S and German forces :)

Really thanks alot guys !