سلام دوستان
چرا من این کلاسو نوشتم بعد به placeable; ایراد میگیره ؟ ارور Unxpected 'placeable میده
اینم کدهام :
class AwesomeWeaponUpgrade extends AwesomeActor;
placeable;
event Touch(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal)
{
if(Pawn(Other) != none && AwesomeWeapon(Pawn(Other).Weapon) !=
none)
{
AwesomeWeapon(Pawn(Other).Weapon).UpgradeWeapon();
Destroy();
}
}
defaultproperties
{
bCollideActors=True
Begin Object Class=DynamicLightEnvironmentComponent
Name=MyLightEnvironment
bEnabled=TRUE
End Object
Components.Add(MyLightEnvironment)
Begin Object Class=StaticMeshComponent Name=PickupMesh
StaticMesh=StaticMesh'UN_SimpleMeshes.TexPropCube_ Dup'
Materials(0)=Material'EditorMaterials.WidgetMateri al_Y'
LightEnvironment=MyLightEnvironment
Scale3D=(X=0.125,Y=0.125,Z=0.125)
End Object
Components.Add(PickupMesh)
Begin Object Class=CylinderComponent Name=CollisionCylinder
CollisionRadius=16.0
CollisionHeight=16.0
BlockNonZeroExtent=true
BlockZeroExtent=true
BlockActors=true
CollideActors=true
End Object
CollisionComponent=CollisionCylinder
Components.Add(CollisionCylinder)
{
کدها که مشکلی نداره قبلا" هم اینجوری نمیشد الان نمیدونم چرا گیر داده