Jump to content
Sign in to follow this  
LoonyWarrior

how to spawn function in trigger

Recommended Posts

hi..

is it possible to spawn function with trigger ?

Trigger on Activation

h = spawn MyFuncion;

right now im doing the same with execVM calling additional script file..

and since this script have 6 rows of code i would like to avoid this..

thx for advice... Loony

Share this post


Link to post
Share on other sites

yes. make sure you pass something to spawn function even if it is empty array or editor will complain

h = [] spawn MyFuncion;

Share this post


Link to post
Share on other sites
yes. make sure you pass something to spawn function even if it is empty array or editor will complain

h = [] spawn MyFuncion;

..thats it ...thx !

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×