• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] destrucible

Status
Not open for further replies.
No you cant.
If you want,you have to duplicate the same destructable w/ colors customized then replace the destructable you want.

If you need proof:
JASS:
native          CreateDestructable          takes integer objectid, real x, real y, real face, real scale, integer variation returns destructable

native          CreateDestructableZ         takes integer objectid, real x, real y, real z, real face, real scale, integer variation returns destructable

native          CreateDeadDestructable      takes integer objectid, real x, real y, real face, real scale, integer variation returns destructable

native          CreateDeadDestructableZ     takes integer objectid, real x, real y, real z, real face, real scale, integer variation returns destructable

native          RemoveDestructable          takes destructable d returns nothing

native          KillDestructable            takes destructable d returns nothing

native          SetDestructableInvulnerable takes destructable d, boolean flag returns nothing

native          IsDestructableInvulnerable  takes destructable d returns boolean

native          EnumDestructablesInRect     takes rect r, boolexpr filter, code actionFunc returns nothing

native          GetDestructableTypeId       takes destructable d returns integer

native          GetDestructableX            takes destructable d returns real

native          GetDestructableY            takes destructable d returns real

native          SetDestructableLife         takes destructable d, real life returns nothing

native          GetDestructableLife         takes destructable d returns real

native          SetDestructableMaxLife      takes destructable d, real max returns nothing

native          GetDestructableMaxLife      takes destructable d returns real

native          DestructableRestoreLife     takes destructable d, real life, boolean birth returns nothing

native          QueueDestructableAnimation  takes destructable d, string whichAnimation returns nothing

native          SetDestructableAnimation    takes destructable d, string whichAnimation returns nothing

native          SetDestructableAnimationSpeed takes destructable d, real speedFactor returns nothing

native          ShowDestructable            takes destructable d, boolean flag returns nothing

native          GetDestructableOccluderHeight takes destructable d returns real

native          SetDestructableOccluderHeight takes destructable d, real height returns nothing

native          GetDestructableName         takes destructable d returns string

constant native GetTriggerDestructable takes nothing returns destructable
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
the only way of doing it besides creating multiple destructables is making the destructable unit with no attack and locust and with some collision size and changing its colors, there is some native for that cant remember that
 
actually, you could just make destructable which has different colors in different animations(if it even is possible) and that way you change colors using animations of the destructable

ya i just hate the rgb color thing i need red blue green which r easy but i also need purple yellow orange and teal which r a pain ( teal is ok and purple isnt to bad) do u by chance know the numbers for these colors ?

note: im trying to change the color for crystal variation 2 it is originally a doodad. if u could help tht would be great
 
Status
Not open for further replies.
Top