Pretty awful with scripting.

Posts 1–2 of 2 · Page 1 of 1
Pretty awful with scripting.
I've never really done scripts but is there anyway to make a simple script that allows you to spawn optics for guns? Just the sniperscope + acog, nothing else really.
re: optics code
welcome to the world of scripting.

i would suggest you go to this wiki here that lists all the available commands:
http://community.bistudio.com/wiki/C...pting_Commands

what your looking for is: addItem

Code:
 player addItem "optic_Hamr";
this will add the RCO to your inventory

or

Code:
 player addPrimaryWeaponItem "optic_Hamr";
will add the RCO to your gun

you can replace the optic_Hamr with any other type of optics you like, just find the CLASS name and put it in the quotation marks.

Hope this help

Pete
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us