Jump to content
  • 0

weapon in iwad not working


protgent

Question

here is my code 


ACTOR magnum : weapon 1 {
    Weapon.BobStyle InverseSmooth
    Weapon.BobSpeed 2.1
    Weapon.BobRangeY 0.3
    Weapon.BobRangeX 0.6
    Weapon.AmmoType "ammo"
    Weapon.SelectionOrder 1
    Obituary "%k died from a magnum blast by the magnum lord %o"
    
    States {
    
    Spawn:
    MGNT G -1
    STOP
    
    Select:
    MGNT A 1 A_RAISE
    loop
    
    Deselect:
    MGNT A 1 A_LOWER
    loop
    
    Ready:
    MGNT A 1 A_WEAPONREADY
    loop
    
    FIRE:
    MGNT A 0 
    MGNT BCDEF A_FIREBULLETS(0,0,
    MGNT A 0 A_REFIRE("FireS")
    MGNT A 1
    goto Ready
    
    
    FireS:
    MGNT BCDEF A_FIREBULLETS(0, 0, 1, 10)
    MGNT A 0 A_REFIRE("FireS")
    goto Ready
    }
}



i put this in my PK3 witch is an iwad being read from GZDOOM.PK3

and when i launch it

i get this

 

Script error, "my pk3 file and dir" line 30:
SC_GetNumber: Bad numeric constant "A_FIREBULLETS". 

what does it mean and how can i fix it?

Edited by Tuckymonster

Share this post


Link to post

12 answers to this question

Recommended Posts

  • 1
8 hours ago, Tuckymonster said:

   MGNT BCDEF A_FIREBULLETS(0,0,

You have the sprite name, some frame letters, but no frame duration.  It is expecting to see the number of tics for those frames, but instead, it sees A_FIREBULLETS.

Share this post


Link to post
  • 0
37 minutes ago, DynamiteKaitorn said:

MGNT BCDEF A_FIREBULLETS(0,0,

 

Where's the " ) " ?

*face palm*

i did, but same error

Share this post


Link to post
  • 0
2 minutes ago, xvertigox said:

The wiki link has an example.

Script error, "my dir" line 30:
SC_GetNumber: Bad numeric constant "Bright".
 

Share this post


Link to post
  • 0
12 hours ago, Empyre said:

You have the sprite name, some frame letters, but no frame duration.  It is expecting to see the number of tics for those frames, but instead, it sees A_FIREBULLETS.

i reworked the code, i got this error 

 

Execution could not continue.

1 errors during actor postprocessing

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...