• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Function problem

Status
Not open for further replies.
Level 9
Joined
Nov 4, 2007
Messages
933
I'm still a bit new to custom script codes, but for some reason the editor's syntax checker won't allow me to use the action call MakeUnitFlyable, help would be much appreciated.
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Also, you will have to put the right parameters in the call if it has any.

For instance
JASS:
 function MakeUnitFlyable takes nothing returns nothing
//...
endfunction

would be called like b_a_d is said, while

JASS:
 function MakeUnitFlyable takes unit u returns nothing
//...
endfunction

would be called call MakeUnitFlyable(your_unit)
 
Status
Not open for further replies.
Top