Function SetTextTagVelocityBJ
- Line
- 6411
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- texttag tt, real speed, real angle
- Returns
- nothing
| 6411 | function SetTextTagVelocityBJ takes texttag tt, real speed, real angle returns nothing |
| 6412 | local real vel = TextTagSpeed2Velocity(speed) |
| 6413 | local real xvel = vel * Cos(angle * bj_DEGTORAD) |
| 6414 | local real yvel = vel * Sin(angle * bj_DEGTORAD) |
| 6415 | |
| 6416 | call SetTextTagVelocity(tt, xvel, yvel) |
| 6417 | endfunction
|