legacy-sid
07-17-2003, 11:54 AM
Hello people!
Once again i'm seen sinking in to the quagmire of development.
I'm using the sega 500 tutorials to create a doorlock mechanism, where the player must pick up a key before they can use a door.
However I need the key to be displayed as my own custom static mesh in order to do this and reference the package, group and mesh correctly I need to utilise three levels (Pack.group.mesh) the sega 500 code uses 2 levels and doesn't seem to accept anything else.
Here's the code i'm using:
class CustomKeyPickup extends TournamentPickup;
defaultproperties
{
MaxDesireability=0.200000
InventoryType=Class'Sid.customInventoryKey'
PickupMessage="L2 Rapid Access Key Acquired!"
PickupSound=Sound'PickupSounds.AssaultAmmoPickup'
DrawType=DT_StaticMesh
StaticMesh=StaticMesh'XGame_rc.MonitorBMesh'
CollisionHeight=12.500000
}
I need the staticMesh variable to point to my static mesh for the key, therefore Key.Redkey.key but the compiler just throws an error and refuses to work
can anybody help?:cry: :cry: :cry:
Once again i'm seen sinking in to the quagmire of development.
I'm using the sega 500 tutorials to create a doorlock mechanism, where the player must pick up a key before they can use a door.
However I need the key to be displayed as my own custom static mesh in order to do this and reference the package, group and mesh correctly I need to utilise three levels (Pack.group.mesh) the sega 500 code uses 2 levels and doesn't seem to accept anything else.
Here's the code i'm using:
class CustomKeyPickup extends TournamentPickup;
defaultproperties
{
MaxDesireability=0.200000
InventoryType=Class'Sid.customInventoryKey'
PickupMessage="L2 Rapid Access Key Acquired!"
PickupSound=Sound'PickupSounds.AssaultAmmoPickup'
DrawType=DT_StaticMesh
StaticMesh=StaticMesh'XGame_rc.MonitorBMesh'
CollisionHeight=12.500000
}
I need the staticMesh variable to point to my static mesh for the key, therefore Key.Redkey.key but the compiler just throws an error and refuses to work
can anybody help?:cry: :cry: :cry: