Can a script_entity call another? And how?
Posted: Wed Apr 15, 2015 4:24 pm
I have several "script_entity"s each called by a different "castle_wall_lever" and I would like to call another script_entity to act like a global function and maybe pass into this global function/"script_entity" a variable to be used to allow it to set things differently depending upon what is passed in. I obviously could have the same code in each of the "castle_wall_lever"s associated "script_entity"s but that would be harder to maintain. If this is possible can some one show me some sample code?