Jump to content

Fail melee Script help!!! (Solved)


Jost05

Recommended Posts

I try to do a melee in SLADE but i have the error script Script error, "ARMA.wad:DECORATE" line 15:
'@property@weapon.type' is an unknown actor property

 

This is the full Script

 

ACTOR ComprenleunDragonaFzstMen: DoomPlayer {
    Player.WeaponSlot 1, First, Destornillador
    Player.WeaponSlot 2, Pistol
    Player.WeaponSlot 3, Shotgun, SuperShotgun
    Player.WeaponSlot 4, Chaingun
    Player.WeaponSlot 5, RocketLauncher
    Player.WeaponSlot 6, PlasmaRifle
    Player.WeaponSlot 7, BFG9000
}

ACTOR Destornillador: Weapon Replaces Chainsaw 20000 {
    Weapon.SelectionOrder 50
    Weapon.AmmoUse Infinite
    Weapon.AmmoGive 0
This is the line 15 = Weapon.Type "GauntletPuff2"
    
    Inventory.PickupSound "weapon/getskull"
    Inventory.PickupMessage "ComprenleunDragonaFzstMen"
    
    States {
        Spawn:
        SKILL A -1
        Stop
        
        Select:
        HSKL A 1 A_Raise
        Loop
        
        Deselect:
        HSKL A 1 A_Lower
        Loop
        
        Ready:
        HSKL A 1 A_WeaponReady
        Loop
        
        Fire:
        HSKL BCD 4 A_Punch, A_Refire
        Goto Fzst
        
        Fzst:
        HSKL E 1 A_FaceTarget
        HSKL E 6 A_SkelWhoosh
        HSKL E 6 A_FaceTarget
        HSKL E 6  A_CustomMeleeAttack(random(1, 10) * 6, "Destornillador")
        HSKL D 5
        Goto Ready
        
    }
}

ACTOR PunchFzst : Actor 20001 {
    +WEAPON.MELEEWEAPON
    
    Decal "Scorch"
    Melee 
    
    Radius 1
    Height 8
    Speed 10
    Damage 5
    
    DeathSound "weapons/plasmax"
    
}

 

 

EDIT: is the DECORATE script

 

Edited by Jost05

Share this post


Link to post
7 hours ago, Kan3 said:

Simply because "Weapon.Type" doesn't exist.
Take a look HERE

Yea i actually put +WEAPON.MELEEWEAPON in the line 15 but now when i click the botton attack the camera stays looking in one direction, I think it is because I use the chainsaw because when you attack with it, the camera stays looking the enemy, but idk how to fix that problem.

Share this post


Link to post
1 hour ago, Jost05 said:

Yea i actually put +WEAPON.MELEEWEAPON in the line 15 but now when i click the botton attack the camera stays looking in one direction, I think it is because I use the chainsaw because when you attack with it, the camera stays looking the enemy, but idk how to fix that problem.

It's very likely because you're using A_FaceTarget. This function is not meant to be used in player's weapons class, cause you don't want to force a player to look at his target (unless you have a very specific kind of weapon that requires it).

The same goes for A_SkelWhoosh, which is calling again A_FaceTarget

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
Reply to this topic...

×   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...