OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The Last Ninja on 28 Jan 2003, 19:45:02

Title: one bullet
Post by: The Last Ninja on 28 Jan 2003, 19:45:02
how do I get a player to start with just one bullet in his revolver


Thx in advance  :-\
Title: Re:one bullet
Post by: Pandoz on 29 Jan 2003, 03:09:28
well i dont think this is possible unless u assign the bullet to be a magazine and if so...then just remove all the mags and add one...any1 else?
Title: Re:one bullet
Post by: Gameer_77 on 29 Jan 2003, 12:04:42
Well....you could make the AI fire off the other bullets using the 'fire' command, but I cant think how you could transfer that to you...unless you done the drop magazine thing and the player picked it up manually. :-\

Gameer
Title: Re:one bullet
Post by: Blanco on 29 Jan 2003, 23:00:33
there's a way but it's not very realistic...but it works

Give him only one magazine and make a trigger that checks how much ammo he has left

eg :  magazine is  30 bullets

check the ammo and when it is 29 , remove the magazine...

Try

condition : Player ammo "M16" == 29

on activation: Player removemagazine "M16"

hmmm, that should work...