- Joined
- Aug 2, 2015
- Messages
- 63
why when i create this function and use it doesn't work
Code:
function SpawnEffect takes string model,real x,real y,real yaw,real pitch,real roll,real scale,real duration,integer red,integer green,integer blue,integer trans returns nothing
set bj_lastCreatedEffect=AddSpecialEffect(model,x,y)
call BlzSetSpecialEffectOrientation(bj_lastCreatedEffect,yaw,pitch,roll)
call BlzSetSpecialEffectScale(bj_lastCreatedEffect,scale)
call BlzSetSpecialEffectColor(bj_lastCreatedEffect,red,green,blue)
call BlzSetSpecialEffectAlpha(bj_lastCreatedEffect,trans)
call BlzSetSpecialEffectTime(bj_lastCreatedEffect,duration)
endfunction