Help with a replaceweapon

I want my 15 rapid-fire quantum torpedo launchers Uber-Defiant now! - Get help from modders. Share your work. Discuss modifications.
posted on January 23rd, 2018, 7:31 pm
It seems that I'm hopelessly stuck with a rather simple task so I'm turning to the community for help.

What I would need is a replaceweapon that is
- equipped on a station/ship/uball/whatewer it works on
- triggers as soon as it becomes available/its owner is built
- targets every eligible friendly ship of different classes (but not EVERY friendly ship)
- replaces each friendly ship with its upgraded variant (so an Akira becomes an upgraded Akira, a Galaxy becomes an upgraded Galaxy)

I KNOW it can be done. I KNOW it should work. And I even managed to do it once but then my HDD got corrupted and I lost it. I'm getting furious... If anyone could help me out with the appropriate code I would be forever in his debt. :wub:
posted on January 23rd, 2018, 9:17 pm
You need 3 parts:

-An areaweapon (or cannonimp) with very high range that targets the ships you want (watch the hitmode command to see whether you want it to affect allied players, or just ships belonging to the owner)
-An ordinance that adds an Extraweapon (the replaceweapon)
-A replaceweapon with replacementInstantPlayer = 1 and the desired before and after ships
posted on January 23rd, 2018, 9:19 pm
...actually, if the original station has no weapons it may not trigger. You may need to use pushbuild or another replaceweapon:

-build station
-station has replaceweapon that drops an effect pod
-effect pod has weapon that targets ships
-weapon has ordinance that adds Extraweapon
-Extraweapon replaces ships

Who is online

Users browsing this forum: No registered users and 1 guest