Hero
─║╣ero─
- Reaction score
- 250
IKK....you do know you can't bold in JASS text...phyr hard coded it like that
native SetPlayerAbilityAvailable takes player whichPlayer, integer abilid, boolean avail returns nothing
native SetPlayerAbilityAvailable takes player(2), integer abilid (I tried some things didn't know what actually worked, because the errors it gave me didn't help me what so ever), boolean avail (boolean avail?! WTF?!) returns nothing
native SetUnitPositionLoc takes unit whichUnit, location whichLocation returns nothing
call SetUnitPositionLoc
call SetUnitPositionLoc(someunit,somelocation)
call DisplayTextToForce( GetPlayersAll(), "This is a function for Player 3 (Teal)" )
if (IsPlayerInForce(GetLocalPlayer(), bj_FORCE_ALL_PLAYERS)) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "This is a function for Player 3 (Teal)")
endif
function DisplayTextToForce takes force toForce, string message returns nothing
if (IsPlayerInForce(GetLocalPlayer(), toForce)) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, message)
endif
endfunction
Whatever it is, from my understanding it does the same thing, but it's simply not native (no "native" appears before the function). Even if it doesn't do the same thing use "DisplayTextToForce" because that is what requested in the assignment.
function Trig_Assignment_2 Actions takes nothing returns nothing
call SetPlayerAbilityAvailable takes player Player(2), integer AHbz, boolean false returns nothing
endfunction
Sorry if I wrote native, I just quickly opened JASSCraft and copied and pasted lol
I'm pretty sure I had call there, maybe not though =/
Edit > I'm a miracle worker. I only get 1 error now! (lol)
Edit > OK, almost got it. I need to know how to declare that AHbz is an ability, and not anything else. Should I write...
Can't think of anything. Like, maybe, GetAbility"AHbz" (I made that up, it's wrong, I know lol)