Solved call function help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
You're better off calling the argument IN your function

like so:
code_language.skript:
function YourFunctionHere(p: player, t: text):
    if {_t} = "suicide":
        #stuff

command /command <text>:
    trigger:
        YourFunctionHere(player, arg-1)
 
You're better off calling the argument IN your function

like so:
code_language.skript:
function YourFunctionHere(p: player, t: text):
    if {_t} = "suicide":
        #stuff

command /command <text>:
    trigger:
        YourFunctionHere(player, arg-1)
Now im using /callfunction[<text>]:
If arg-1 is "abc"
Abc(command sender)

So~no more call function's way????
 
yeah, if you want to do it that way you could
I think he's trying to see if it's possible to create a command whose single purpose is to call a function using it's text parameter. I really don't know if this is possible, do you know if there's a way?
 
Status
Not open for further replies.