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
-
How do I use the weapon create sexp
-
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?
-
Don't think i was clear enough
here is the mission and a custom weapon required
needs TBP
[attachment deleted by ninja]
-
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.
-
I am trying to make it look like a beam is coming from the planet
-
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.
-
Thaks sorry about not being clear
-
Put an invisible sentry gun or ship with a beam turret where you want the beam to come from, and use fire-beam.
-
thanks