Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: SetAmmoCount....

Started 3 weeks, 2 days ago by DemonFire
Am I coding this right? It isn't working. I'm trying to get the units that get hit to only use their knives and not their guns. But even after the code is executed they still seem to have plenty of ammo to shoot with. Any suggestions? Heres my code so far: Code: function onHit(victim, attacker) OFP:setArmy(attacker,1) OFP:setAmmoCount(attacker,0) OFP:setMood(...
Site: Codemasters Forum  Codemasters Forum - site profile
Forum: Operation Flashpoint 2 - Modder's Chat Zone  Operation Flashpoint 2 - Modder's Chat Zone - forum profile
Total authors: 4 authors
Total thread posts: 10 posts
Thread activity: no new posts during last week
Domain info for: codemasters.com

Other posts in this thread:

TemplarGFX replied 3 weeks, 2 days ago
I think originally they planned to have the AI have limited ammo. but then realised they waste all there ammo shooting at the air around you. so they changed it so they have unlimited ammo. Im guessing they just dont take ammo into account when shooting anymore.

TemplarGFX replied 3 weeks, 2 days ago
I think originally they planned to have the AI have limited ammo. but then realised they waste all there ammo shooting at the air around you. so they changed it so they have unlimited ammo. Im guessing they just dont take ammo into account when shooting anymore. __________________...

DemonFire replied 3 weeks, 2 days ago
Ok, well if there is no way to change the amount of ammo they have, how about the guns they use? Is there a way to kill those? Or any way to make the AI that are hit to use just their knives? EDIT: AHA I found it! When the setAmmo command goes off it empties the current clip your on. So if you set you AIs to have only one clip available to them then it just gets emptied and for...

DemonFire replied 3 weeks, 2 days ago
Ok, well if there is no way to change the amount of ammo they have, how about the guns they use? Is there a way to kill those? Or any way to make the AI that are hit to use just their knives? EDIT: AHA I found it! When the setAmmo command goes off it empties the current clip your on. So if you set you AIs to have only one ...

JasonFMX replied 3 weeks, 2 days ago
AHA! I thought they had unlimited ammo

TemplarGFX replied 3 weeks, 2 days ago
you can change the initial amount of ammo they start with in the editor. but if you give em one clip, they still reload and keep shooting

TemplarGFX replied 3 weeks, 2 days ago
you can change the initial amount of ammo they start with in the editor. but if you give em one clip, they still reload and keep shooting __________________ MODS : ULTIMATE AI MOD 1.0 Make the game the way it was meant to be! Realistic AI behaviour! MINIMODS : Hold a ...

Haywood Slap replied 3 weeks, 2 days ago
I don't know if this would make a difference, but doesn't the call to setAmmoCount also take the type of ammo as one of the parameters (LOL, I'm going to have to install the editor manual on my work machine so I can look these things up at work). __________________ In theory there...

 

Top contributing authors

Name
Posts
DemonFire
4
user's latest post:
SetAmmoCount....
Published (2009-11-11 03:26:00)
Ok, well if there is no way to change the amount of ammo they have, how about the guns they use? Is there a way to kill those? Or any way to make the AI that are hit to use just their knives? EDIT: AHA I found it! When the setAmmo command goes off it empties the current clip your on. So if you set you AIs to have only one clip available to them then it just gets emptied and for some reason they dont get another one. So if you ever want to...
TemplarGFX
4
user's latest post:
SetAmmoCount....
Published (2009-11-11 13:34:00)
you can change the initial amount of ammo they start with in the editor. but if you give em one clip, they still reload and keep shooting
JasonFMX
1
user's latest post:
SetAmmoCount....
Published (2009-11-11 06:37:00)
AHA! I thought they had unlimited ammo
Haywood Slap
1
user's latest post:
SetAmmoCount....
Published (2009-11-11 15:54:00)
I don't know if this would make a difference, but doesn't the call to setAmmoCount also take the type of ammo as one of the parameters (LOL, I'm going to have to install the editor manual on my work machine so I can look these things up at work). __________________ In theory there is no difference between theory and practice. But in practice there is.

Related threads:

No related threads found!

Thread profile page for "SetAmmoCount...." on http://www.codemasters.com. This report page is a snippet summary view from a single thread "SetAmmoCount....", located on the Message Board at http://www.codemasters.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity