Добавлен , опубликован
//============================================================================
// Destructable API
//
native GetDestructablePositionLocation					takes destructable whichDestructable returns location
native SetDestructablePosition							takes destructable whichDestructable, real x, real y returns nothing
native SetDestructablePositionLocation					takes destructable whichDestructable, location whichLocation returns nothing
native SetDestructableX									takes destructable whichDestructable, real x returns nothing
native SetDestructableY									takes destructable whichDestructable, real y returns nothing
native GetDestructableVertexColour 						takes destructable whichDestructable returns integer
native SetDestructableVertexColour 						takes destructable whichDestructable, integer red, integer green, integer blue, integer alpha returns nothing
native GetDestructableTimeScale 						takes destructable whichDestructable returns real
native SetDestructableTimeScale 						takes destructable whichDestructable, real timeScale returns nothing
native GetDestructableScale 							takes destructable whichDestructable returns real
native SetDestructableScale 							takes destructable whichDestructable, real scale returns nothing
native GetDestructableFacing 							takes destructable whichDestructable returns real
native SetDestructableFacing 							takes destructable whichDestructable, real facing, boolean isInstant returns nothing
native SetDestructableSpaceRotation        				takes destructable whichDestructable, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native SetDestructableOrientation          				takes destructable whichDestructable, real yaw, real pitch, real roll returns nothing
native GetDestructableYaw 								takes destructable whichDestructable returns real
native SetDestructableYaw 								takes destructable whichDestructable, real yaw returns nothing
native GetDestructablePitch 							takes destructable whichDestructable returns real
native SetDestructablePitch 							takes destructable whichDestructable, real pitch returns nothing
native GetDestructableRoll 								takes destructable whichDestructable returns real
native SetDestructableRoll 								takes destructable whichDestructable, real roll returns nothing
native SetDestructableModel 							takes destructable whichDestructable, string modelFile returns nothing
native SetDestructableModelEx 							takes destructable whichDestructable, string modelFile, integer playerId returns nothing
native SetDestructableMaterialTexture 					takes destructable whichDestructable, string textureName, integer materialId, integer textureIndex returns nothing
native SetDestructableTexture 							takes destructable whichDestructable, string textureName, integer textureIndex returns nothing
native SetDestructableReplaceableTexture 				takes destructable whichDestructable, string textureName, integer textureIndex returns nothing
native SetDestructableAnimationWithRarityByIndex 		takes destructable whichDestructable, integer animIndex, raritycontrol rarity returns nothing
native SetDestructableAnimationWithRarity 				takes destructable whichDestructable, string animation, raritycontrol rarity returns nothing
native SetDestructableAnimationByIndex 					takes destructable whichDestructable, integer animIndex returns nothing
native QueueDestructableAnimationByIndex 				takes destructable whichDestructable, integer animIndex returns nothing

native EnumDestructablesInRange							takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
//
`
ОЖИДАНИЕ РЕКЛАМЫ...
0
17
1 год назад
0
Круто! А можешь добавить функцию IsDestructableType takes destructable whichDestructable, unittype whichUnitType returns boolean ? Это чтобы можно было добавлять разрушаемым типы от юнитов, и разделять деревья на типы, для определения типа? Например, чтобы из кучи объектов в области найти только ворота или баррикады и убрать их, итд итп.
0
20
1 год назад
0
Круто! А можешь добавить функцию IsDestructableType takes destructable whichDestructable, unittype whichUnitType returns boolean ? Это чтобы можно было добавлять разрушаемым типы от юнитов, и разделять деревья на типы, для определения типа? Например, чтобы из кучи объектов в области найти только ворота или баррикады и убрать их, итд итп.
Данные неоткуда брать, ибо изначального "разделения", да и данные UnitType хранятся в структуре объекта, у разрушаемых нет такого.
0
17
1 год назад
0
Unryze, Ясно. Жаль.
0
20
1 год назад
0
Unryze, Ясно. Жаль.
Ну, это конечно можно "сделать" самому, просто смысл в этом ну слишком маленький, ибо придётся добавлять как раз все эти новые типы и т.д. и т.п., времени требует очень много, а выхлопа слишком мало.
2
17
1 год назад
2
Unryze, ну логично, если из за этого перелопачивать 100500 строк кода, ради одной функции, то смысла нет)
Чтобы оставить комментарий, пожалуйста, войдите на сайт.