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
How to use additementity and remove item?
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#2
RE: How to use additementity and remove item?

AddUseItemCallback("", "itemname", "entityname", "function", true); // Put this in void OnStart



then you add this too (i will do a door example.)

void function(string &in asItem, string &in asEntity)
{
RemoveItem(asItem);
SetSwingDoorLocked(asEntity, false, true);
}
How this works is by asItem, it's an advanced Syntax sort to speak, it will to say it easily look at the name function, and then to the function as stated. and look at the part of the item, for asItem, and entity for asEntity. Now when you want another one.
Just add the same with function. so you can use it over and over again Big Grin! Yay?

Signature to awesome to be displayed.
05-15-2012, 03:09 PM
Find


Messages In This Thread
RE: How to use additementity and remove item? - by Stepper321 - 05-15-2012, 03:09 PM



Users browsing this thread: 1 Guest(s)