Hey guys, I'm having a big trouble to call a function when the player pick up an item. I tried to use SetEntityPlayerInteractCallback but it didn't worked.
Wrong thread for help, it's supposed to be in Development support
You can call the function with the item in the level editor
(04-20-2012, 03:05 PM)SilentStriker Wrote: [ -> ]Wrong thread for help, it's supposed to be in Development support
You can call the function with the item in the level editor
Please come one. Sorry for postin in the wrong thread for help, but I'm stunk here for two days.
How to call a function using this way?
When creating an item in the level editor, select it and press the entity tab on the right, then in Callback func write the name of your function then in the .hps you write like this
void OnStart()
{
}
void NAMEOFFUNCTION(string &in asEntity, string &in asType)
{
//Stuff you want to happen
}