Pfx Message
From TrainzOnline
(Difference between revisions)
m (1 revision) |
Latest revision as of 23:59, 3 February 2010
- The pfx message is used to activate or deactivate particle effects.
- The minor string is used to specify which effect to alter and is built up from a series of plus or minus signs followed by the index of the particle concerned.
SendMessage(me, "pfx", "+0+1+2"); // Activates particle effects 0, 1 and 2. SendMessage(me, "pfx", "-0+2-4-5+6"); // Deactivates particle effects 0, 4 & 5 and activates particle effects 2 & 6. SendMessage(me, "pfx", "-0-1-2"); // Deactivates particle effects 0, 1 and 2.
In addition to SendMessage(), both PostMessage() and Router.PostMessage() can be used to send pfx messages to an object.