Author Topic: Weapon Create  (Read 1955 times)

0 Members and 1 Guest are viewing this topic.

How do I use the weapon create sexp
May the Force be with you

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Code: [Select]
weapon-create
weapon-create
Creates a new weapon
Takes 5 to 10 arguments...
1: Name of parent ship (or "" for no parent)
2: Class of new weapon
3: X position
4: Y position
5: Z position
6: Pitch (optional)
7: Bank (optional)
8: Heading (optional)
9: Targeted ship (optional)
10: Targeted subsystem (optional)

Like that. What is giving you trouble here?
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

 
Don't think i was clear enough

here is the mission and a custom weapon required

needs TBP

[attachment deleted by ninja]
« Last Edit: April 29, 2011, 07:17:16 am by The_Force »
May the Force be with you

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
I am still not exactly sure what it is you want to do. weapon-create is used to create single instances of weapons that fly around in the mission space, like missiles that come out of nowhere, single primary shots, that kind of thing.

That mission you posted is empty, there are no events there, no hint of what you were trying to do.
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

 
I am trying to make it look like a beam is coming from the planet
« Last Edit: April 29, 2011, 06:38:53 am by The_Force »
May the Force be with you

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Right. The problem is that beams cannot be created through weapon-create. You would need to put a turret with a beam weapon where you want the beam to originate, and then use fire-beam.
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

 
Thaks sorry about not being clear
May the Force be with you

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Put an invisible sentry gun or ship with a beam turret where you want the beam to come from, and use fire-beam.

  
thanks
May the Force be with you