Home   Help Search Login Register  

Author Topic: Weapons  (Read 1252 times)

0 Members and 1 Guest are viewing this topic.

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Weapons
« on: 20 Nov 2003, 14:33:58 »
Okie dookie just got this cool sniper rifle download;
THe file is named M82A1.pbo and what i want to know is you can equip certain units, im going to use a Black op, with different weapons??? Would be much apprecited!  :tomato:
MIkEy FIshY BoyY YabDAO

m21man

  • Guest
Re:Weapons
« Reply #1 on: 20 Nov 2003, 15:40:19 »
Code: [Select]
removeallweapons unit
unit addmagazine "m82mag"
unit addmagazine "m82mag"
unit addmagazine "m82mag"
unit addmagazine "m82mag"
unit addweapon "m82"
« Last Edit: 20 Nov 2003, 15:45:47 by m21man »

m21man

  • Guest
Re:Weapons
« Reply #2 on: 20 Nov 2003, 15:41:23 »
I suggest you look at the readme and see what the actual names are for the weapon and the ammunition, I just made up "m82" and "m82mag" as examples.

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Re:Weapons
« Reply #3 on: 20 Nov 2003, 17:09:38 »
Well i read the read me and my script reads;
removeallweapons Mike
Mike addmagazine "cmo_M82a1mag"
Mike addmagazine "cmo_M82a1mag"
Mike addmagazine "cmo_M82a1mag"
Mike addmagazine "cmo_M82a1mag"
Mike addweapon "cmo_M82A1"
Mike is the name of my unit, i wrote in mikes init feild, this exec "coolwep.sqs" (Coolwep.sqs is name of script file) and he gets the weapon but doesn't have any ammo?!?!?
:help::help::help::help::help::help::help::help::help::help::help:
MIkEy FIshY BoyY YabDAO

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Re:Weapons
« Reply #4 on: 20 Nov 2003, 17:57:18 »
Also aswell as not having any ammo he cannt get his errr sight up to look at things :help:
MIkEy FIshY BoyY YabDAO

m21man

  • Guest
Re:Weapons
« Reply #5 on: 20 Nov 2003, 18:49:33 »
Are you sure the magazine name is "cmo_m82a1mag"? It could be just "cmo_m82a1". As for the sight, that sounds more like a problem with the rifle's cpp coding.

KyleSarnik

  • Guest
Re:Weapons
« Reply #6 on: 21 Nov 2003, 04:51:34 »
If your script says:

Code: [Select]
removeallweapons Mike
Mike addmagazine "cmo_M82a1mag"
Mike addmagazine "cmo_M82a1mag"
Mike addmagazine "cmo_M82a1mag"
Mike addmagazine "cmo_M82a1mag"
Mike addweapon "cmo_M82A1"

then you don't need "this" to execute it. Simply:

[] exec "coolwep.sqs"

but if you want to save the script and use it on other units (not named Mike), you could do this:

Code: [Select]
_mike = _this

removeallweapons _mike
_mike addmagazine "cmo_M82a1mag"
_mike addmagazine "cmo_M82a1mag"
_mike addmagazine "cmo_M82a1mag"
_mike addmagazine "cmo_M82a1mag"
_mike addweapon "cmo_M82A1"

and then use this exec "coolwep.sqs" to execute it. Totaly irrelevent but, what the hell.