OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PDOGG on 22 Feb 2004, 08:06:50
-
I have the HK Pack and the BAS Deltas. I've tried again and again in many different ways to arm them with the SOCOM but i cant get rid of the Glock does anyone know what I should do with init to get rid of the glock cause im having alot of trouble with it. Also when I put the SOCOM in a weapons crate i cant get the magazines to spawn for it too, i assume ill have the same problem with the soldiers themselves. If anyone could help me it would be very well appreciated(im working on a Delta Campaign and want my Dboys armed with the HK pack as well as the M4SOPMODS). By the way if i did something wrong like posting in the wrong forums, please excuse me as this is my first post on the boards and i ran a search for this but couldnt find it. I also couldnt find another forum on these boards that would suit my question well so i posted it here. Again sorry if I made a mistake. :'(
-
Could you clarify a bit more how you've tried to remove the Glock from the Deltas and so on...
-
Sure, my bad. I put : this RemoveGlock17; this removeMagazines"Glock17"
to add the SOCOM I put: this AddWeapon"HKSOCOM" ; this AddMagazine"HKSOCOM" (i did it 3 times to make 3 magazines)
-
It shud be:
this removeweapon "Glock17"
instead of:
RemoveGlock17
And don't worry, u posted and did everything correct. Some ppl are way out compared to u.
And one more thing,
WELCOME TO OFPEC, MATEY!!! ;D
:beat: *Gets Shot* :beat:
-
I tried what you said and loaded the mission but I got the Glock again. :'( this is exactly what I typed, can anyone find anything wrong with it?
this removeweapon "Glock17"; this removeMagazines "Glock17"; this AddWeapon "HKSOCOM"; this AddMagazine "HKSOCOM"; this AddMagazine "HKSOCOM"; this AddMagazine "HKSOCOM"
that is exactly what I typed in the init field for an M14 Aimpoint standard camo Delta. Nothing happened, can anyone find anything wrong with it? I really want my campaign to contain the HK pack weapons. Thanks for your help so far though man, appreciate it.
-
Try this. You've probably just got a typo somewhere. Check that you have the correct names for the weapon and magazine.
removeAllWeapons this; this AddMagazine "HKSOCOM"; this AddWeapon "HKSOCOM"; this AddMagazine "HKSOCOM"; this AddMagazine "HKSOCOM"
Always add at least one magazine before the weapon to ensure that the weapon is loaded at the start of the mission.
-
I typed it exactly as you said and I got the gun but no magazines. I tried with the name "SOCOM" for the magazines too but no luck. I also only want to get rid of the Glock if I can, and does anyone know the name of the HKSOCOM's mags in the HK mod?
-
HKSOCOMmag...
-
I saw this in the ED Depot and thought that it may be of some use to you:
Get weapon and ammo names | Azraell January 31, 2004, 17:39
Snippets : Weapons and Ammo | 1 Comment | 28 Views
With this small, one line command placed the players or AI's Initialization field, you can get the names of both the weapon and the ammo it fires.
Again, just place it into the Initialization field of the unit you want to get weapon info from, shoot off some rounds, and weapon and ammo info will appear in a hint box.
Since there is no script to upload, ill just post it here and you can copy and paste to your desired location.
this addeventhandler ["fired",{hint format ["Name of shot is: %1,%2", (_this select 2),(_this select 4)]}]
Now you can identify exactly what weapons and ammo a unit uses so if you want to get rid of them, you will know what they are (not sure if it gives the magazine name though)!
Wadmann
-
you were right bout the mag name kint many thanks im a moron for not thinking of that, thanks man. Wad I, typed that in init for a Delta but it didn't work, am I stupid and supposed to put something in there or should I just type it as it was written. If this wont work does anyone know how to remove JUST the glock17 and it's magazines from a delta? the thing where I removed all his weapons and added the gun worked but now I just wanna get rid of that Glock. Thanks to you guys who are trying to help me and my stupid brain though, we appreciate it :D
-
:noo:
you just do what Macguba said earlier... The correct weapon name for the Glock the Deltas use is "Glock" ::)...
So in the initfield of the unit type:
this removeWeapon "Glock"; this removeMagazines "GlockMag"; this AddMagazine "HKSOCOMmag"; this AddMagazine "HKSOCOMmag"; this AddMagazine "HKSOCOMmag"; this AddMagazine "HKSOCOMmag"; this addWeapon "HKSOCOM"...
If that doesn't work then I don't know what will... >:(
And that what Wadmann posted works just fine... Just read carefully the quote...
It just shows the weapons name and the muzzle used (single, auto...) not ammo or mags...
-
The Waddman thing stil lwont work i must be a moron. but anyway u were right kint it worked perfectly when I type exactly what u said in the init field. MANY thanks man. ;D