Etraman 0 Posted November 29, 2001 I want to make a mission where player starts with just 3 rounds of ammo instead of 1 full clip. Is this possible? tnx. Share this post Link to post Share on other sites
MP 0 Posted November 29, 2001 Well that's a new one! I dunno, try the ammo slider in unit set up...................... Share this post Link to post Share on other sites
Etraman 0 Posted November 30, 2001 Thanx MP but nope, doesnt work. In unit's (name=pl) initfield i typed : removeallweapons pl; pl addmagazine "hk"; pl addweapon "hk" so the ammoslider has no use of what so ever... If i leave out the pl addmagazine "hk" Â there's no ammo at all (duh..) Somebody else wanna have a go at this one? Share this post Link to post Share on other sites
zovirl 0 Posted November 30, 2001 Hmm, there are some commands to force an AI unit to fire his weapon. Do those work for the player's unit as well? You could fire off several rounds at the start of the mission, similar to the way you blow up vehicles at the start if you want wasted vehicles sitting around Share this post Link to post Share on other sites
Etraman 0 Posted December 1, 2001 doesn't seem to work for the player. I created an init.sqs with the following lines: #loop ~0.00001 pl dofire target ?(pl ammo "hk" == 3): goto "endloop" goto "loop" #endloop target setdammage 1 target setpos [30000,20000,-5] exit (pl=player, target= a jeep) the last lines(#endloop) where to remove the jeep from the playfield, since this jeep was not planned to be in the mission. I just created it to be a sitting duck All this works just fine for an ai unit, but when i trie it on the player's unit, it just creates a target-thingy over the jeep and waits for playerinput. i also tried: pl ammo "hk" = 3, but this resulted in an errormessage. The ammo command is just to verify how many rounds a unit has got. pffff....i dunno how to do it. Please experts, take a look at this. It would be nice to use for difficult missions! Grtz, Etraman Share this post Link to post Share on other sites
Etraman 0 Posted December 4, 2001 Come on guys 'n gals! It gotta be possible! Share this post Link to post Share on other sites
RED 0 Posted December 4, 2001 Well i don't know the answer for you question but why would u want only 3 bullets ? Oh you could maybe get it to work in a intro ? but if u use the setac command to speed up time so it happens alot quicker. But i don't think it will work in the intro RED Share this post Link to post Share on other sites
Daneel 0 Posted December 6, 2001 If you want your player to perform an action you have to do it in a cut scene. Set up a camera on the other side off the island to give a nice little shot of a tank or something and while this is filming your players character will follow wp orders (like firing off shots until he only has 3 rounds left). Share this post Link to post Share on other sites