Data Realms Fan Forums http://45.55.195.193/ |
|
What did I do wrong? http://45.55.195.193/viewtopic.php?f=1&t=24309 |
Page 1 of 1 |
Author: | Krabman318 [ Mon Jun 20, 2011 7:15 pm ] |
Post subject: | What did I do wrong? |
I tried to make the mauler shotgun shoot homing bullets, so I linked to the .lua script in the .ini file: Code: AddAmmo = AEmitter PresetName = Particle Coalition Mauler Mass = 4 HitsMOs = 0 GetsHitByMOs = 0 SpriteFile = ContentFile FilePath = Coalition.rte/Devices/Sprites/SniperCasing.bmp ScriptPath = Coalition.rte/Needler.lua (...) But when loading Shotguns.ini, Cortex Command crashes. Do you know what´s the problem? |
Author: | Azukki [ Thu Jun 23, 2011 5:47 pm ] |
Post subject: | Re: What did I do wrong? |
The problem is that your implementation of the script applies the script to the AEmitter for the mauler, not the shot itself. If you're okay with making all coalition shotguns homing, put the scriptpath line on the "Particle Coalition Shotgun" object. If you want it to just be the mauler that homes, go to where it says Code: AddEmission = Emission EmittedParticle = MOPixel CopyOf = Particle Coalition Shotgun ParticlesPerMinute = 1 BurstSize = 18 Spread = 0.05 MaxVelocity = 80 MinVelocity = 65 PushesEmitter = 0 and replace that with Code: AddEmission = Emission EmittedParticle = MOPixel CopyOf = Particle Coalition Shotgun PresetName = Particle Coalition Mauler Shotgun ScriptPath = Coalition.rte/Needler.lua ParticlesPerMinute = 1 BurstSize = 18 Spread = 0.05 MaxVelocity = 80 MinVelocity = 65 PushesEmitter = 0 And, of course, you need to actually have a Coalition.rte/Needler.lua to reference. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |