MoustacheManny Posted November 10, 2022 I wanted my custom monster to fire seeking missiles so I added the function A_seeker missile at the end just like i saw in other wads but when i booted up the game an error messege came up that said " line 656: Sprite names must be exactly 4 characters'' Any help you guys could offer? Spawn: A011 A 0 NODELAY ThrustThingZ(0,random(6,10),0,0) A_SeekerMissile(10,10,SMF_PRECISE) loop 0 Quote Share this post Link to post
jaeden Posted November 10, 2022 (edited) You cannot have both ThrustThingZ and A_SeekerMissile attached to single frame like this. Either spread them to two separate frames, or make an anonymous function that combines them. Also 0 duration looping frame will most likely totally freeze or crash the game. Edited November 10, 2022 by jaeden bad word order 1 Quote Share this post Link to post
MoustacheManny Posted November 10, 2022 Do you know how I would arange them to be on different frames? 0 Quote Share this post Link to post
SMG_Man Posted November 11, 2022 (edited) This is what you currently have: Spawn: A011 A 0 NODELAY ThrustThingZ(0,random(6,10),0,0) A_SeekerMissile(10,10,SMF_PRECISE) loop This is what it should probably look like: Spawn: A011 A 2 A_SeekerMissile(10,10,SMF_PRECISE) loop Note that "ThrustThingZ" is not a valid DECORATE action function, so you cannot use it in your missile's definition. If you would like to modify its upward velocity, you will need to use an actual action function, like A_ChangeVelocity. To apply it to a separate frame, simply add another frame to the state definition: Spawn: A011 A 2 A_SeekerMissile(10, 10, SMF_PRECISE) A011 A 2 A_ChangeVelocity(0, 0, 10, CVF_REPLACE) loop Edited November 11, 2022 by SMG_Man 0 Quote Share this post Link to post
MoustacheManny Posted November 11, 2022 It Almost worked but now instead of throwing the projectiles forword he throws the straight up 0 Quote Share this post Link to post
ramon.dexter Posted November 11, 2022 What do you think, the ThrustThingZ() does? 0 Quote Share this post Link to post
MoustacheManny Posted November 11, 2022 When I was using ThrustThingZ It worked fine because I copied and pasted that function and values fron another wad that i liked. Im just not sure how to edit the A_ChangeVelocity function to have the same results. 0 Quote Share this post Link to post
ramon.dexter Posted November 11, 2022 (edited) https://zdoom.org/wiki/A_ChangeVelocity Yeah, typical. Blind copy of other mod without trying to understand what the copied does. Edited November 11, 2022 by ramon.dexter 0 Quote Share this post Link to post
MoustacheManny Posted November 11, 2022 I knew what it did i just did not know which part of it did what. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.