|
function createPooledObjEff(obj, AniPath,XPos,YPos,ZPos,LayerType,Direction)
{
if(!obj) return null
local AniObj = sq_CreateAnimation("", AniPath)
local AniPooledObj = sq_CreatePooledObject(AniObj, true)
sq_SetCurrentDirection(AniPooledObj, Direction)
AniPooledObj.setCurrentPos(XPos, YPos, ZPos)
AniPooledObj = sq_SetEnumDrawLayer(AniPooledObj, LayerType)
sq_AddObject(obj, AniPooledObj, OBJECTTYPE_DRAWONLY, false)
return AniPooledObj
}
加了女鬼剑的一般都有这个函数,没加女鬼剑的把这个函数随便找个挂在的文件写上就行。 |
|