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
) »
Primary or secondary in hands?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Primary or secondary in hands? (Read 484 times)
0 Members and 1 Guest are viewing this topic.
Wildebeest
Contributing Member
The time the wildebeest ruled the Earth.
Primary or secondary in hands?
«
on:
17 Aug 2003, 12:24:32 »
Hi,
is there a way to check what kind of weapon a unit is currently
holding
in his hands? Like whether it's a primary weapon or a secondary.
thx
Logged
Weeee...
mcnils
Guest
Re:Primary or secondary in hands?
«
Reply #1 on:
17 Aug 2003, 21:41:01 »
I think not.. but I'm a noob.
You can detect what type of weapon the unit has (m60,m16,AK47,PK and so on), but not if it is primary or secondary.
Logged
macguba
Former Staff
Re:Primary or secondary in hands?
«
Reply #2 on:
18 Aug 2003, 01:41:28 »
Learn about the commands hasweapon, weapon, primaryweapon and secondaryweapon. They may help you.
Details in the Command Reference. I recommend the online version in the Editors Depot.
I'm not sure if there is a command that returns the currently active weapon. Read through the command ref and see if you can find one.
Logged
Plenty of
reviewed ArmA missions
for you to play
Wildebeest
Contributing Member
The time the wildebeest ruled the Earth.
Re:Primary or secondary in hands?
«
Reply #3 on:
18 Aug 2003, 12:44:06 »
Yes, thanks guys, but I already know how to use all those commands. As far as I know they don't detect which weapon the unit got on his back and which he is holding in his hands. They just check the weapons he posseses, no matter which one he is holding. I want to know this because I'm trying to force the player to be able to remove his glasses and put them back on again using action commands. The thing is that the animation I use for him to remove the glasses makes him holster his weapon, which is good, but it takes him more time holstering his secondary weapon than his primary. The outcome of this is that the glasses disappears about a second too late when the player is holding a pistol. What I'm trying to do now is to have him use the action "combattobinoc" when holding his big gun, "FXCivilHandMouth" when he's holding his pistol or don't have any weapon at all. This would require two different "FXCivilHandMouth", since it takes him less time performing the action when unarmed.
I think I'm stuck forever.
Thx guys, yer the best.
Logged
Weeee...
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
) »
Primary or secondary in hands?
Top of page