Can CEGTag be applied to debris? - Page 2

Can CEGTag be applied to debris?

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Can CEGTag be applied to debris?

Post by knorke »

in your unitDef add this:
pieceTrailCEGTag = "fire",

Now whenever you Explode a piece, it will use the ceg named fire0

You can also do this in your unitDef:
pieceTrailCEGTag = "fire",
pieceTrailCEGRange = 4,

Now whenever you Explode a piece, it will randomly try to use the ceg named
fire0
fire1
fire2
fire3


Btw I think this system is stupid because now you can not ie use your ceg "smoke" because you have to rename it to "smoke0"

It would be better if this was possible:
pieceTrailCEGTag =
{
[1] = "fire",
[2] = "smoke",
[3] = "sparkle",
}


kill/selfd the "hovereffects" unit in http://code.google.com/p/springtutorialgame to see
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Re: Can CEGTag be applied to debris?

Post by Noruas »

Xta has good examples.
Post Reply

Return to “Art & Modelling”