I need some help!
Moderator: wildweasel
-
- Posts: 8
- Joined: Thu Feb 08, 2007 23:23
I need some help!
I get an "Tried to spawn a class-less actor" error, when i try to pick up a weapon piece! Can someone help me, how to fix it?
-
- DRD Team Admin (Inactive)
- Posts: 2132
- Joined: Wed Jun 29, 2005 22:00
- Location: the Admincave!
All I can offer as advice at this point is, make sure you haven't mistyped anything in your weapon names, and make sure that you actually have the sprite for each piece's Spawn state. The "class-less actor" error usually occurs when something is spawned, but the Spawn state is either missing or is referring to a sprite that does not exist.
-
- Stronghold Team
- Posts: 319
- Joined: Thu Apr 12, 2007 21:35
- Location: Germany
-
- Posts: 8
- Joined: Thu Feb 08, 2007 23:23
Assembling weapon
Code:
ACTOR SMGASS : Weapon 20045
{
+AMMO_OPTIONAL
Health 2 // defines number of weapon pieces
Weapon.SelectionOrder 700
Inventory.PickupSound "misc/w_pkup"
Inventory.PickupMessage "Osszeraktal egy szuper fegyot a kacatokbol, amiket talaltal."
Weapon.AmmoType "Clip"
Weapon.AmmoGive 50
Weapon.AmmoUse 1
AttackSound "weapons/chngun"
States
{
Spawn:
MGUN A -1
Loop
Ready:
CHGG A 1 A_WeaponReady
Loop
Deselect:
CHGG A 1 A_Lower
Loop
Select:
CHGG A 1 A_Raise
Loop
Fire:
CHGG A 4 A_FireBullets (0, 0, 10, 999, "BulletPuff")
CHGG B 0 A_ReFire
Goto Ready
}
}
ACTOR Piece1 : WeaponPiece 10000
{
WeaponPiece.Number 1
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Gumigolyo? Minek ez nekem?"
Scale 0.04
States
{
Spawn:
S1P1 A -1
}
}
ACTOR Piece2 : WeaponPiece 10001
{
WeaponPiece.Number 2
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Valami illatosito ize."
Scale 0.03
States
{
Spawn:
S1P2 A -1
}
}
ACTOR Piece3 : WeaponPiece 10002
{
WeaponPiece.Number 3
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Valami illatosito ize."
Scale 0.03
States
{
Spawn:
S1P2 A -1
}
}
ACTOR SMGASS : Weapon 20045
{
+AMMO_OPTIONAL
Health 2 // defines number of weapon pieces
Weapon.SelectionOrder 700
Inventory.PickupSound "misc/w_pkup"
Inventory.PickupMessage "Osszeraktal egy szuper fegyot a kacatokbol, amiket talaltal."
Weapon.AmmoType "Clip"
Weapon.AmmoGive 50
Weapon.AmmoUse 1
AttackSound "weapons/chngun"
States
{
Spawn:
MGUN A -1
Loop
Ready:
CHGG A 1 A_WeaponReady
Loop
Deselect:
CHGG A 1 A_Lower
Loop
Select:
CHGG A 1 A_Raise
Loop
Fire:
CHGG A 4 A_FireBullets (0, 0, 10, 999, "BulletPuff")
CHGG B 0 A_ReFire
Goto Ready
}
}
ACTOR Piece1 : WeaponPiece 10000
{
WeaponPiece.Number 1
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Gumigolyo? Minek ez nekem?"
Scale 0.04
States
{
Spawn:
S1P1 A -1
}
}
ACTOR Piece2 : WeaponPiece 10001
{
WeaponPiece.Number 2
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Valami illatosito ize."
Scale 0.03
States
{
Spawn:
S1P2 A -1
}
}
ACTOR Piece3 : WeaponPiece 10002
{
WeaponPiece.Number 3
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Valami illatosito ize."
Scale 0.03
States
{
Spawn:
S1P2 A -1
}
}
-
- Posts: 1000
- Joined: Wed Jul 06, 2005 11:58
- Location: What's that fucking smell
-
- Stronghold Team
- Posts: 319
- Joined: Thu Apr 12, 2007 21:35
- Location: Germany
-
- Posts: 8
- Joined: Thu Feb 08, 2007 23:23
Assembling weapon
I changed it to 3, but i still get the error message