Call a script, but no scritps in the menu

  • #1, by nerdSaturday, 03. November 2018, 07:21 4 months ago
    I've added two screenshot for clarity

    Forum Fan

    141 Posts


  • #2, by NigecSaturday, 03. November 2018, 09:05 4 months ago
    uncheck the checkbox in the script editor then it will show

    Great Poster

    468 Posts

  • #3, by sebastianSaturday, 03. November 2018, 09:35 4 months ago
    for explaination :

    call a script only shows 'non definition scripts'. It will run the code only when it gets called by that action 

    Definition scripts however run all at start of your game. Putting functions in it will make these functions available anywhere to your game. 

    When you want to call these functions, just use the "execute a script" action part and write your function call there:

    my_function(args) 

    In your screenshot you use a hook to run that function whenever a text get displayed/positioned automatically by the game/engine. 
    There is no need to call it manually in this case. 

    Best regards
    Sebastian 

    Thread Captain

    2277 Posts

  • #4, by nerdSaturday, 03. November 2018, 17:30 4 months ago
    thank you guys

    Forum Fan

    141 Posts

Write post