View unanswered posts | View active topics It is currently Mon Dec 30, 2024 10:37 pm



Reply to topic  [ 2 posts ] 
 What did I do wrong? 
Author Message

Joined: Mon Jun 13, 2011 2:33 pm
Posts: 9
Reply with quote
Post 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?


Mon Jun 20, 2011 7:15 pm
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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.


Thu Jun 23, 2011 5:47 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.038s | 13 Queries | GZIP : Off ]