Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: The_Force on April 29, 2011, 07:28:21 am

Title: Beam create
Post by: The_Force on April 29, 2011, 07:28:21 am
please can someone tell me how to make a sexp like weapon create but for beams

i don't have the code

i can only code in python

edit: have code
Title: Re: Beam create
Post by: The E on April 29, 2011, 08:59:45 am
There is an (admittedly incomplete) guide to writing sexps here (http://www.hard-light.net/forums/index.php?topic=75818.0). Note that a working knowledge of C/C++ is not optional when working with the FSO source.
Title: Re: Beam create
Post by: The_Force on April 29, 2011, 09:07:52 am
Thaks looks like i'll have to learn
Title: Re: Beam create
Post by: The_Force on April 29, 2011, 09:15:20 am
On Second thoughts where do I put in a request for one
Title: Re: Beam create
Post by: JCDNWarrior on April 29, 2011, 09:18:14 am
I've tested it for you with the FREDing knowledge I have (Which is to say average to above average) and I couldn't replicate a beam weapon in weapon-create. It does work fine for missiles though.

My advice is to use a invisible ship with a beam weapon hardpoint, and tell it to open fire. Perhaps there are more ways though.
Title: Re: Beam create
Post by: The_Force on April 29, 2011, 09:19:25 am
Ok thanks
Title: Re: Beam create
Post by: The E on April 29, 2011, 09:28:19 am
I've tested it for you with the FREDing knowledge I have (Which is to say average to above average) and I couldn't replicate a beam weapon in weapon-create. It does work fine for missiles though.

My advice is to use a invisible ship with a beam weapon hardpoint, and tell it to open fire. Perhaps there are more ways though.

It doesn't work because the weapon-create sexp runs through the internal weapon_create() function, which isn't suitable for creating beams, since the engine treats beams as a very special case indeed.