Re: Attaching script to bullet (cannot match property)
To do what he said, and
put the script on the particle instead of the round, you should move it down to below TrailLength, and a add one tab, so it looks like this.
You could also just plop it in between other variables belonging to the MOPixel Particle, such as Mass, Sharpness, and LifeTime, but that doesn't look as tidy.
Code:
AddAmmo = Round
PresetName = Round OG
ParticleCount = 1
Particle = MOPixel
PresetName = Particle OG
Mass = 0
RestThreshold = 500
LifeTime = 1
Sharpness = 0
HitsMOs = 1
GetsHitByMOs = 0
Color = Color
R = 143
G = 143
B = 143
Atom = Atom
Material = Material
CopyOf = Bullet Metal
TrailColor = Color
R = 155
G = 155
B = 155
TrailLength = 0
ScriptPath = Epic.rte/Lua/pwn.lua
Shell = none
FireVelocity = 0
Separation = 5
You see, it's all about the tabbing. Or at least evidenced by the tabbing.
The round is the base object you're creating, but really, you're making a bunch of stuff for that round too.
The PresetName, ParticleCount, Particle, Shell, FireVelocity, EjectionVelocity, and Separation are all being defined for the Round.
The PresetName, Mass, RestThreshold, Lifetime, Sharpness, HitsMOs, GetsHitByMOs, Color, Atom, and ScriptPath, are all being defined for the Particle MOPixel.
R, G, and B are all defined for the Color.
Material, TrailColor, and TrailLength are all defined for the Atom.
That material is defined as being a copy of a preexisting "Bullet Metal"
R, G, and B are all defined for the TrailColor of the atom.
Notice that all of those lists above each have their own set of indentation, and they all follow a less-indented line, which is the definition of the thing they describe. This is how CC's .ini files are all structured.
In making a round, you made a TrailColor, which you needed for your Atom, which you needed for your MOPixel, which you needed for your Round!
You also made a Color for your MOPixel for your Round.
And, of course, you made the MOPixel for your Round. Because it needed a Particle.
I don't mean to tell you your business, but I think your round also wants a shell.