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
-
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
-
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.
-
Thaks looks like i'll have to learn
-
On Second thoughts where do I put in a request for one
-
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.
-
Ok thanks
-
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.