Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: The_Force on April 29, 2011, 06:16:05 am

Title: Weapon Create
Post by: The_Force on April 29, 2011, 06:16:05 am
How do I use the weapon create sexp
Title: Re: Weapon Create
Post by: The E on April 29, 2011, 06:20:12 am
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?
Title: Re: Weapon Create
Post by: The_Force on April 29, 2011, 06:24:15 am
Don't think i was clear enough

here is the mission and a custom weapon required

needs TBP

[attachment deleted by ninja]
Title: Re: Weapon Create
Post by: The E on April 29, 2011, 06:30:37 am
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.
Title: Re: Weapon Create
Post by: The_Force on April 29, 2011, 06:32:47 am
I am trying to make it look like a beam is coming from the planet
Title: Re: Weapon Create
Post by: The E on April 29, 2011, 07:12:32 am
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.
Title: Re: Weapon Create
Post by: The_Force on April 29, 2011, 07:15:12 am
Thaks sorry about not being clear
Title: Re: Weapon Create
Post by: General Battuta on April 29, 2011, 07:43:10 am
Put an invisible sentry gun or ship with a beam turret where you want the beam to come from, and use fire-beam.
Title: Re: Weapon Create
Post by: The_Force on April 29, 2011, 07:48:21 am
thanks