Disguise issue (not working in functions) ?

  • 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 community!

    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.

pepper82

Member
Jan 26, 2017
272
1
18
code_language.skript:
function EventSpawnMonster(id: text, p: player): 
  set {_disguise} to new disguise with type ZOMBIE with username "&cMONSTER"
  set disguise of {_p} to {_disguise}

Trying to reload that script throws an error:
j6n4u9l.png


Any ideas how to fix?
 
the syntax is:
code_language.skript:
[skellett] [[Libs]Disguises] disguise [of] %entities%[[']s] [(to|from) player %player%]
[skellett] [[Libs]Disguises] %entities%'s disguise [(to|from) player %player%]
And as the second player expression from the syntax is only optional when the event has a player event-value (this applies for all syntaxes that don't have a - (- means it's nullable therefore it won't be filled) and are optional in the type) you will have fill it.
 
  • Like
Reactions: pepper82
Ok I dont get it ... could you please post an example? it just does not work for me.
 
Status
Not open for further replies.