Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
der.hannes

Coin & Collision Models

Recommended Posts

i have a question about the coin module and cant realy understand the explanations on bi wiki.

i have set up a coin module at wich i can buy vehicles and ammo chests and stuff like that.

some of the vehicles & objects (motorcycle,atv...) have working green preview model when i place them, others dont have this green model (mountainbike,apache...) and collide with objects and npcs :(

how can i add the missing preview class to these objects?

this is what i found on http://community.bistudio.com/wiki/Construction_Interface:

BIS_COIN_items = <array>; - List of items to buy. Preview class (green transparent building) have to be named buildingclass_preview.

Array cointains building class, it' price in array (first element is funds' ID - see below, second is actual price; if only price is set, funds' ID will be 0) and display name

this is my coin script:

? !(local server) : exit

BIS_coin_1 setvariable ["BIS_COIN_name","<t color="#ffff00"">" + ("FROSTBITE-Shop") + "</t&gt];

BIS_coin_1 setvariable ["BIS_COIN_rules",[p1,p2]];

BIS_coin_1 setvariable ["BIS_COIN_categories",["Vehicles","Armored","Air","Misc","Ammo"]];

BIS_coin_1 setvariable ["BIS_COIN_funds","money_account"];

BIS_coin_1 setvariable ["BIS_COIN_areasize",[30,10]];

BIS_coin_1 setvariable ["BIS_COIN_fundsDescription",["$"]];

BIS_coin_1 setvariable ["BIS_COIN_onstart",{supply kbTell [player, "supplychat", "supplychat4"]}];

BIS_coin_1 setvariable ["BIS_COIN_onselect",{supply kbTell [player, "supplychat", "supplychat5"]}];

BIS_coin_1 setvariable ["BIS_COIN_onPurchase",{supply kbTell [player, "supplychat", "supplychat6"]}];

BIS_coin_1 setvariable ["BIS_COIN_onrepair",{supply kbTell [player, "supplychat", "supplychat7}];

BIS_coin_1 setvariable ["BIS_COIN_onsell",{supply kbTell [player, "supplychat", "supplychat8}];

bis_coin_1 setvariable ["BIS_COIN_items",[["MMT_USMC","Vehicles",100],["M1030_US_DES_EP1","Vehicles",200],["ATV_US_EP1","Vehicles",300],["Skoda","Vehicles",500],["HMMWV_DES_EP1","Vehicles",800],["SUV_PMC","Vehicles",800],["ArmoredSUV_PMC","Vehicles",2000],["M113_UN_EP1","Armored",2500],["M2A2_EP1","Armored",4000],["M1A2_US_TUSK_MG_EP1","Armored",5000],["MH6J_EP1","Air",4000],["BAF_Apache_AH1_D","Air",10000],["US_Backpack_EP1","Misc",800],["Tripod_Bag","Misc",200],["M2HD_mini_TriPod_US_Bag_EP1","Misc",1000],["AGS_UN_Bag_EP1","Misc",1500],["TOW_TriPod_US_Bag_EP1","Misc",1500],["M252_US_Bag_EP1","Misc",1500],["USBasicAmmunitionBox","Ammo",500],["USBasicWeapons_EP1","Ammo",1000],["USSpecialWeaponsBox","Ammo",2000],["USLaunchersBox","Ammo",1500],["USOrdnanceBox","Ammo",500],["BAF_BasicAmmunitionBox","Ammo",500],["BAF_BasicWeapons","Ammo",2000],["GERBasicWeapons_EP1","Ammo",1000],["Ammobox_PMC","Ammo",2000]]];

exit

if anyone is able to: please help me. i searched whole bi editing forums but dont get it :confused:

Share this post


Link to post
Share on other sites
Sign in to follow this  

×