Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Call a script, but no scritps in the menu

  • #1, by nerd 7 years ago Zitieren
    I've added two screenshot for clarity
  • #2, by Nigec 7 years ago Zitieren
    uncheck the checkbox in the script editor then it will show
  • #3, by sebastian 7 years ago Zitieren
    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 
  • #4, by nerd 7 years ago Zitieren
    thank you guys