Hi everyone,
sorry today i'm lazy so didn't make a search if an answer already exists.
Just want to know,if possible, how to call an inside hook of an object (say a monster) from an ingame script; so that i can change a specific monster behaviour without creating a new monster in my monster.lua file.
TY
[SOLVED] call hooks from ingame script
[SOLVED] call hooks from ingame script
Last edited by Granamir on Sun Aug 02, 2015 4:43 pm, edited 1 time in total.
Re: call hooks from ingame script
It might be better to have the hook always call the in-game script; where you can change how the function behaves.Granamir wrote:Hi everyone,
sorry today i'm lazy so didn't make a search if an answer already exists.
Just want to know,if possible, how to call an inside hook of an object (say a monster) from an ingame script; so that i can change a specific monster behaviour without creating a new monster in my monster.lua file.
TY
The script can get the calling monster as an argument, and you can do your checks on it, and make changes to the outcome based on the individual monster calling the script.
Re: call hooks from ingame script
Understood. TY