Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Selecting Different Tank Weapons?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Selecting Different Tank Weapons? (Read 615 times)
0 Members and 1 Guest are viewing this topic.
NightJay0044
Former Staff
Let's make OFPEC great again
Selecting Different Tank Weapons?
«
on:
05 Sep 2005, 01:39:12 »
Alright, I have the player (ME), and 1 civilian, and a BMP on the map. Alright what I want to do is to get the BMP to use it's cannon to shoot the civilian instead of using it's machine gun.
From start to finish how do I go about doing that?
THanks.
Logged
Who's hyped for Arma4, long live Arma!
Tyger
Former Staff
I was at OFPEC when it still had dirt floors...
Re:Selecting Different Tank Weapons?
«
Reply #1 on:
05 Sep 2005, 03:58:00 »
I believe the lower the civilian's rating, the more threat they pose to the tank, so try this:
Code:
[Select]
loon_1 addRating -500000
where loon_1 is the civvy. The tank should shoot the poor sod with a tank round then.
Logged
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell
MSG Mike Everret - We Will Never Forget - '75-'08
NightJay0044
Former Staff
Let's make OFPEC great again
Re:Selecting Different Tank Weapons?
«
Reply #2 on:
05 Sep 2005, 04:54:20 »
Where am I saposed to type that code, in a script, init field or other? If i type it in the civlians init field, if I put this "this addrating blahblah", it doesn't work then, the tank fires it's machine guns. Any thoughts?
Logged
Who's hyped for Arma4, long live Arma!
Morglor9
Members
Re:Selecting Different Tank Weapons?
«
Reply #3 on:
05 Sep 2005, 05:23:48 »
perhaps a higher rating?
Logged
Cymbaline
Triggerhappy
Contributing Member
Llama, it's what's for dinner.
Re:Selecting Different Tank Weapons?
«
Reply #4 on:
05 Sep 2005, 05:31:43 »
perhaps:
tankname selectweapon "cannonName"
where you would need to change cannonName to whatever the classname of the cannon for the bmp
you may be able to try (primaryweapon tankname) as well
Logged
Sliding plane crash script
Arrest script
THobson
OFPEC Patron
Former Staff
Re:Selecting Different Tank Weapons?
«
Reply #5 on:
05 Sep 2005, 09:15:40 »
I didn't think a BMP would shoot a civilian. I think you would need to make the civi west by grouping him with a west soldier that has probability of presence set to false. Then the BMP will see him as west even if he looks like a civi.
Why not just remove the machinegun ammo from the BMP? Something like:
BMPname
removeMagazines "MachineGun7_6"
«
Last Edit: 05 Sep 2005, 09:36:44 by THobson
»
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Selecting Different Tank Weapons?
Top of page