Author Topic: SCP Script Question  (Read 779 times)

0 Members and 1 Guest are viewing this topic.

Zwos

  • Cheater Apprentice
  • *
  • Posts: 18
  • Peace Sells.. But Whos Buying?
    • View Profile
SCP Script Question
« on: October 03, 2007, 08:51:08 pm »
How would I go about spawning a US Special Weapons crate in front of my character, and... is it possible to have the contents inside the crate be super weapons? EX. GAU8?

Bellend

  • Klass Klown
  • ***
  • Posts: 297
    • View Profile
Re: SCP Script Question
« Reply #1 on: October 04, 2007, 11:18:04 am »
Code: [Select]
_sbw = "SpecialBoxWest" createVehicle getPos player
_sbw setDir getDir player
ClearMagazineCargo _sbw
ClearWeaponCargo _sbw
_sbw AddMagazineCargo ["6Rnd_GBU12_AV8B",1000]
_sbw AddWeaponCargo ["BombLauncher",1000]

hint format["Special Box West Spawned at: %1",getPos _sbw]
~3
hint ""

exit

This should work. :)

HDMI Man

  • Intentional Cheater
  • **
  • Posts: 49
  • Nothing is bad or good, but thinking makes it so.
    • View Profile
Re: SCP Script Question
« Reply #2 on: October 08, 2007, 10:13:42 am »
Holy crap Thanks for the post This actually helped me out on a script i was making for a spawn crates command for all the weapons

Is this correct? or do i have a few mistakes?


Quote
_Dump = "SpecialBoxWest" createVehicle getPos player
_Dump setDir getDir player
ClearMagazineCargo _Dump
ClearWeaponCargo _Dump

_Dump AddWeaponCargo ["M16A2",20]
_Dump AddWeaponCargo ["M16A2GL",20]
_Dump AddWeaponCargo ["M16A4",20]
_Dump AddWeaponCargo ["M16A4_GL",20]
_Dump AddWeaponCargo ["M16A4_ACG",20]
_Dump AddWeaponCargo ["M16A4_ACG_GL",20]
_Dump AddWeaponCargo ["M4",20]
_Dump AddWeaponCargo ["M4GL",20]
_Dump AddWeaponCargo ["M4AIM",20]
_Dump AddWeaponCargo ["M4A1",20]
_Dump AddWeaponCargo ["M4A1SD",20]
_Dump AddWeaponCargo ["M4A1GL",20]
_Dump AddWeaponCargo ["G36K",20]
_Dump AddWeaponCargo ["G36C",20]
_Dump AddWeaponCargo ["G36A",20]
;SubMachinguns
_Dump AddWeaponCargo ["MP5A5",20]
_Dump AddWeaponCargo ["MP5SD",20]
;Machineguns
_Dump AddWeaponCargo ["M249",20]
_Dump AddWeaponCargo ["M240",20]
;SniperRifles
_Dump AddWeaponCargo ["M24",20]
_Dump AddWeaponCargo ["M4SPR",20]
_Dump AddWeaponCargo ["M107",20]
;Pistols
_Dump AddWeaponCargo ["M9",20]
_Dump AddWeaponCargo ["M9SD",20]
;Rockets
_Dump AddWeaponCargo ["M136",20]
_Dump AddWeaponCargo ["JAVELIN",20]
_Dump AddWeaponCargo ["STINGER",20]

;Ammo
;AssaultRifles
_Dump AddMagazineCargo ["30Rnd_556x45_Stanag",700]
_Dump AddMagazineCargo ["30Rnd_556x45_G36",300]
_Dump AddMagazineCargo ["30Rnd_556x45_StanagSD",700]
;GrenadeLauncher
_Dump AddMagazineCargo ["FlareWhite_M203",100]
_Dump AddMagazineCargo ["FlareGreen_M203",100]
_Dump AddMagazineCargo ["FlareRed_M203",100]
_Dump AddMagazineCargo ["FlareYellow_M203",100]
_Dump AddMagazineCargo ["1Rnd_HE_M203",100]
;SubMachineguns
_Dump AddMagazineCargo ["30Rnd_9x19_MP5",100]
_Dump AddMagazineCargo ["30Rnd_9x19_MP5SD",100]
;Machineguns
_Dump AddMagazineCargo ["200Rnd_556x45_M249",100]
_Dump AddMagazineCargo ["100Rnd_762x51_M240",100]
;SniperRifles
_Dump AddMagazineCargo ["5Rnd_762x51_M24",100]
_Dump AddMagazineCargo ["20Rnd_556x45_Stanag",100]
_Dump AddMagazineCargo ["10Rnd_127x99_m107",100]
;Pistols
_Dump AddMagazineCargo ["15Rnd_9x19_M9",100]
_Dump AddMagazineCargo ["15Rnd_9x19_M9SD",100]
;Rockets
_Dump AddMagazineCargo ["M136",100]
_Dump AddMagazineCargo ["JAVELIN",100]
_Dump AddMagazineCargo ["STINGER",100]

;EAST
;Weapons
;AssaultRifles
_Dump AddWeaponCargo ["AK74",20]
_Dump AddWeaponCargo ["AK74GL",20]
_Dump AddWeaponCargo ["AKS74U",20]
_Dump AddWeaponCargo ["AKS74UN",20]
_Dump AddWeaponCargo ["AKS74PSO",20]
;MachineGuns
_Dump AddWeaponCargo ["PK",20]
;SniperRifles
_Dump AddWeaponCargo ["SVD",20]
_Dump AddWeaponCargo ["KSVK",20]
;Rockets
_Dump AddWeaponCargo ["RPG7V",20]
_Dump AddWeaponCargo ["STRELA",20]
;pistol
_Dump AddWeaponCargo ["Makarov",40]
_Dump AddWeaponCargo ["MakarovSD",40]

;Ammo
;AssaultRifles
_Dump AddMagazineCargo ["30Rnd_545x39_AK",300]
_Dump AddMagazineCargo ["30Rnd_545x39_AKSD",100]
;GrenadeLaunchers
_Dump AddMagazineCargo ["FlareWhite_GP25",50]
_Dump AddMagazineCargo ["FlareGreen_GP25",50]
_Dump AddMagazineCargo ["FlareRed_GP25",50]
_Dump AddMagazineCargo ["FlareYellow_GP25",50]
_Dump AddMagazineCargo ["1Rnd_HE_GP25",50]
;MachineGuns
_Dump AddMagazineCargo ["100Rnd_762x54_PK",100]
;SniperRifles
_Dump AddMagazineCargo ["10Rnd_762x54_SVD",100]
_Dump AddMagazineCargo ["5Rnd_127x108_KSVK",100]
;pistol
_Dump AddMagazineCargo ["8Rnd_9x18_Makarov",100]
_Dump AddMagazineCargo ["8Rnd_9x18_MakarovSD",100]
;Rockets
_Dump AddMagazineCargo ["PG7V",100]
_Dump AddMagazineCargo ["PG7VR",100]
_Dump AddMagazineCargo ["STRELA",100]

;Both
;Ammo
;Put
_Dump AddMagazineCargo ["PipeBomb",100]
_Dump AddMagazineCargo ["TimeBomb",100]
_Dump AddMagazineCargo ["Mine",100]
_Dump AddMagazineCargo ["MineE",100]
;Trow
_Dump AddMagazineCargo ["SmokeShellRed",100]
_Dump AddMagazineCargo ["SmokeShellGreen",100]
_Dump AddMagazineCargo ["SmokeShell",100]
_Dump AddMagazineCargo ["HandGrenadeTimed",100]
_Dump AddMagazineCargo ["HandGrenade",100]

;Equipment
;Weapons
_Dump AddWeaponCargo ["Laserdesignator",20]
_Dump AddWeaponCargo ["NVGoggles",20]
_Dump AddWeaponCargo ["Binocular",20]
;Ammo
_Dump AddMagazineCargo ["Laserbatteries",100]



hint format["Special Box West Spawned at: %1",getPos _sbw]
~3
hint ""

exit