Making this mui/mpi

AdamGriffith

You can change this now in User CP.
Reaction score
69
Still not working. :mad:

JASS:
library slide

globals
    private location Point
    private real S
    private real U
    private real V
    private real A
    private real T
    private real Time
    private timer t1 = CreateTimer()
    private unit u1
endglobals

function Slide_SVT_02 takes nothing returns nothing
    local real distance = (U * Time) + (0.5 * A * Pow(Time, 2))
    local location point = PolarProjectionBJ(Point, distance, GetUnitFacing(u1))
    call DisplayTextToForce(bj_FORCE_ALL_PLAYERS, R2S(distance))
    call SetUnitPositionLoc(u1, point)
    if Time >= T then
        set Time = 0
        call PauseTimer(t1)
    else
    set Time = Time + 0.035
    endif
    call RemoveLocation(point)
endfunction

function Slide_SVT_01 takes real displacement, real final_velocity, real time, unit u returns nothing
    set S = displacement
    set V = final_velocity
    set T = time
    set U = (S / (0.5 * T)) - V
    set A = (S - (V * T)) / (-0.5 * Pow(T, 2))
    set u1 = u
    set Point = GetUnitLoc(u1)
    call TimerStart(t1, 0.035, true, function Slide_SVT_02)
endfunction

endlibrary
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
If you're getting no errors yet can't play the map you're doing something terribly wrong.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top