(04-24-2011, 02:51 PM)laser50 Wrote: Just as the title Said, How do i make an event happen once a player picked an item up?
(Code And Explaination please, if possible.)
void OnStart()
{
SetEntityPlayerInteractCallback("Item", "Function", true);
}
void Function(string &in asEntity)
{
[EVENT]
}
Item = The item that is interacted with
Function = The function that is called
EVENT = What happens after the player picks the item up
SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction); = Line of code