I have tried to put an onFragment event into the misslie but the onFragment doesn't seem to be seen.
http://paste.neurohack.com/view/YkY83/
The top code doesn't load and the bottom is just the fragment section revised which does load but doesn't work.
Any ideas
onFragment help
"Have you guys ever watched the show?" ~ Guy
Ok, so I used it as an event and got the following:
OnFragment [thermo damage]: No binding for symbol: aFireAngle ### (sysCreateWeaponFire "0xE5AC5001" gSource aFirePos aFireAngle (typGetDataField (itmGetUNID gItem) "speed") aTargetObj) ###
Code changed a little too but it seems to not like the onfragment event.
http://paste.neurohack.com/view/YNwW4/
OnFragment [thermo damage]: No binding for symbol: aFireAngle ### (sysCreateWeaponFire "0xE5AC5001" gSource aFirePos aFireAngle (typGetDataField (itmGetUNID gItem) "speed") aTargetObj) ###
Code changed a little too but it seems to not like the onfragment event.
http://paste.neurohack.com/view/YNwW4/
"Have you guys ever watched the show?" ~ Guy
Removed aFireAngle and am pulling the angle manually using (objGetDir gSource) per a comment made by Atarlost in 2008.
No more error message but it still doesn't create weapon fire...
http://paste.neurohack.com/view/YyX2j/
No more error message but it still doesn't create weapon fire...
http://paste.neurohack.com/view/YyX2j/
"Have you guys ever watched the show?" ~ Guy
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
It's because you put the <events> inside the <weapon>.
<events> is a child of <itemtype> and so it's not part of the w<weapon> child.
You can check some examples of weapons with events in Atarlost's mods.
<events> is a child of <itemtype> and so it's not part of the w<weapon> child.
You can check some examples of weapons with events in Atarlost's mods.
Good to know but still no second phase. It did help with another project though.
All of the events seem to be onfireweapon.
Just another question. Is there a problem with the weapon being a launcher?
After it's working I plan on doing a list with different onFragment events for each missile.
All of the events seem to be onfireweapon.
Just another question. Is there a problem with the weapon being a launcher?
After it's working I plan on doing a list with different onFragment events for each missile.
"Have you guys ever watched the show?" ~ Guy