Jump to content

Recommended Posts

I am very new to this game but i played the demo for a month so i know a little but not much. I want to start out easy i want to spawn a us pilot with a m16. Now this m16 is the kind that has no attachments no scope no laser no nothing how do i do this? Any help would be nice:)

Share this post


Link to post
Share on other sites

_pilot = "USMC_Soldier_Pilot" createVehicle getpos player; 
removeAllWeapons _pilot;  
_pilot addMagazine "30Rnd_556x45_Stanag"; 
_pilot addWeapon "M16A2"; 
_pilot selectWeapon "M16A2";

That'll make the pilot, take away his weapons, give him a single magazine for an M16, give him the M16A2 (iron sights only) then make him wield it.

You could also do this:

"USMC_Soldier_Pilot" createUnit [getpos player, group player,"removeAllWeapons this;  this addMagazine ""30Rnd_556x45_Stanag""; this addWeapon ""M16A2""; this selectWeapon ""M16A2"";", 0.6, "corporal"]

That'll do the same thing, but group the pilot with your player.

Edited by kylania

Share this post


Link to post
Share on other sites

where do i put in initaialzation? i told you im new plz step by step

Share this post


Link to post
Share on other sites

Well, to be honest if you're new, just place a Pilot in the Editor and put this in it's init field:

removeAllWeapons this;  this addMagazine "30Rnd_556x45_Stanag"; this addWeapon "M16A2";

What exactly are you trying to do? If I had more information about what this pilot is and what he's going to be doing I could give you more specific information about how to get your idea in game.

Share this post


Link to post
Share on other sites

well i was using the pilot as a example im ganna use a rifle man or something. the reason i said pilot was not to confuse people "oh he already has a m16" yea but it has a scope lol. oh can i copy and paste or do i need a pin and pad (;

---------- Post added at 11:06 PM ---------- Previous post was at 11:02 PM ----------

im using general editing ya know not saving just doind stupid stuff like a sniper with a m60 OHHHHHHHHHHHHHHHHH! this was the reason i posted this, I want to have a night mission where a guy in a guli suit has a silenced m4 but could you answer my original, post can i past it?:confused:

Edited by wizbomb

Share this post


Link to post
Share on other sites

Yes, you can copy and paste from the forums into game. Ctrl-C and Ctrl-V per normal.

Share this post


Link to post
Share on other sites

k tnxs !

---------- Post added at 12:16 AM ---------- Previous post was Yesterday at 11:37 PM ----------

i have a problem when i put the weapon type as say...... M4A1 Holo it says its not there or when i have a m24 i try to give a mag 5Rnd Mag or 5Rnd_Mag it says its not there or M16A2 M20A3 same thing not there is there a list i could have of weapons because some work some dont and i have another problem only one mag how do i get 5 is there a command i have to do????

Share this post


Link to post
Share on other sites

what about ammo

but thnx for this list im in heaven omfg im so happy

Share this post


Link to post
Share on other sites

If you follow the link i gave you, and click on Weapons, then click on a Rifle it'll give you details about it. The ammo it uses is listed on the bottom of the detail page.

Like the M24 (Class name M24) uses 5Rnd_762x51_M24 while the M16A2 M203 (Class name M16A2GL) uses 30Rnd_556x45_Stanag.

Share this post


Link to post
Share on other sites

Or you could use the stickied thread in this forum, as has been said in every thread this question has come up. Check out Placebo's sticky for details.

Share this post


Link to post
Share on other sites

{player addMagazine "30Rnd_556x45_Stanag";} foreach [1,2,3,4,5];

Share this post


Link to post
Share on other sites

where do i put it in the whole code after i put "M16A2"; {player addMagazine "30Rnd_556x45_Stanag";} foreach [1,2,3,4,5];?????????

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×