Author Topic: Shooting rocket?  (Read 1978 times)

0 Members and 1 Guest are viewing this topic.

Offline yomi

  • 25
Is there a way to create secondary weapon that would have turret?
Or secondary weapon that could spawn ship?

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Is there a way to create secondary weapon that would have turret?
Or secondary weapon that could spawn ship?

Turret? dont think anyone has tried it but i would be supprised if the code supports it.

Spawning a ship, with SEXPs and possibly some scripting it would be doable but i am unsure how to go about it exactly
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline crizza

  • 210
Ask Sara about her shotgun of doom.
http://www.youtube.com/watch?v=M69OT1fobj4
« Last Edit: November 08, 2011, 05:21:39 am by crizza »

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Weapons (including missiles) aren't ships. As such, they cannot have subsystems, which is a requirement for having turrets.

Weapons can spawn other weapons, but not ships.

As the sexp system cannot track single weapon instances (like a single missile), it is impossible to retrieve the weapon's position and orientation in order to spawn a ship when the weapon explodes.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
I think that the only way to do that would be to use scripting.
Alternatively, if you're working with a capship, you could try using a dummy fighterbay and link ship arrivals to a dummy weapon firing.

  

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
one of the many ideas that can be done with scripting.

actually its fairly easy to have a script look for certain types of missiles and replace them with ships. youd need to copy over attributes like team and target info, so they know who to shoot at. this is (i think) how i let ai ships fire drones in the cockpit mod im working on.
« Last Edit: November 08, 2011, 03:46:38 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN