sysCreateWeaponFire questions

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

sysCreateWeaponFire returns an object. Is that object the shot it creates?

If you use an itmStruct in the first argument will it use the itmStructs item data for the various events that are called because of that shot?
Crying is not a proper retort!
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Yes to the first question: the object returned is the shot created (though there is not much you can do with it other than get/set its velocity, position, etc.)

No to the second question: Unfortunately, you cannot pass an itemStruct in the first arg. [But it is a good idea for a new feature.]
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

can shots store data with the objData functions? If so we can do a workaround saving the itmStruct on the shot and have the events that need the data from a shot that could come from sysCreateWeaponFire check for that.
Crying is not a proper retort!
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Does it give a list if syscreateweaponsfire is used with a spread, dual, or repeating weapon?

Can onHit be given shot access so that kinetic weapons can be made to do damage based on relative velocity?
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

syscreateweaponsfire do not generate any configuration, so a dual weapon do only a single shot
the object returned is the shot created (though there is not much you can do with it other than get/set its velocity, position, etc.)
woah! so we can emulate our own tracking weapons and/or do some effects like bend laser beams :D
Post Reply