Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Frustrating combination problem.
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Frustrating combination problem.

Ah yes, regarding the actual script for giving the item, you should stick with the GiveItem line intead of GiveItemFromFile. The latter was meant for debugging. Also no need to use both, as that'll just give you two items. As DnALANGE said, change that string in the line to match these parameters:

PHP Code: (Select All)
void GiveItem(stringasNamestringasTypestringasSubTypeNamestringasImageNamefloat afAmount); 

asName - internal name
asType - item to give
asSubTypeName - item name for .lang file
asImageName - For exemple: void GiveItem(string& asName, string& asType, “chemical_container_full”, “chemical_container_full.tga” , float afAmount); The image is from graphics\Item\chemical_container_full.tga : is the image which will appear in Inventory - img155.imageshack.us/img155/6871/20806785.jpg
afAmount - amount to give

(This post was last modified: 06-04-2014, 01:55 AM by Mudbill.)
06-04-2014, 01:55 AM
Find


Messages In This Thread
Frustrating combination problem. - by Slanderous - 06-03-2014, 09:20 PM
RE: Frustrating combination problem. - by Mudbill - 06-03-2014, 11:51 PM
RE: Frustrating combination problem. - by Mudbill - 06-04-2014, 01:55 AM
RE: Frustrating combination problem. - by Mudbill - 06-05-2014, 01:54 PM
RE: Frustrating combination problem. - by Neelke - 06-05-2014, 03:21 PM



Users browsing this thread: 1 Guest(s)