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 Is there a way to make the player spawn with a lantern in their inventory?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Is there a way to make the player spawn with a lantern in their inventory?

GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);

Adds an item to the inventory of the player. Note that the item does not have to exist as entity in the world to be able to do this.

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


Taken from http://wiki.frictionalgames.com/hpl2/amn..._functions


Sorry I can't help you any more, don't have amnesia with me to test : P

(This post was last modified: 01-09-2012, 01:03 AM by flamez3.)
01-09-2012, 01:02 AM
Find


Messages In This Thread
RE: Is there a way to make the player spawn with a lantern in their inventory? - by flamez3 - 01-09-2012, 01:02 AM



Users browsing this thread: 1 Guest(s)