Jost05 Posted November 28, 2021 (edited) 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 November 28, 2021 by Jost05 0 Quote Share this post Link to post
Kan3 Posted November 28, 2021 (edited) Simply because "Weapon.Type" doesn't exist. Take a look HERE Edited November 28, 2021 by Kan3 0 Quote Share this post Link to post
Jost05 Posted November 28, 2021 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. 0 Quote Share this post Link to post
Kan3 Posted November 28, 2021 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 0 Quote Share this post Link to post
Jost05 Posted November 28, 2021 Thanks bro i fix the problem of the camera and now my custom weapon is working nice, I appreciate. 1 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.