add key object

Can be used to open doors, etc. Editor interactions and stuff are still on the todo.
directional-lights
Maikel de Vries 2016-10-16 18:47:08 +02:00
parent ff2c32b77e
commit 5e7ce466e1
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,15 @@
[DefCore]
id=Key
Version=8,0
Category=C4D_Object
Width=8
Height=8
Offset=-4,-4
Value=15
Mass=1
Picture=0,0,40,40
Vertices=3
VertexX=-3,-2,3
VertexY=-2,-3,3
VertexFriction=50,50,50
Rotate=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,28 @@
/**
Key
Use to open something.
@author Maikel
*/
public func Hit()
{
Sound("Hits::Materials::Metal::LightMetalHit?");
}
// Set the color of the key, may be corresponding to the color of a door for example.
public func SetColor(int color)
{
return SetClrModulation(color);
}
public func IsKey() { return true; }
/*-- Properties --*/
local Name = "$Name$";
local Description = "$Description$";
local Collectible = true;
local BorderBound = C4D_Border_Sides;

View File

@ -0,0 +1,2 @@
Name=Schlüssel
Description=Damit kann man etwas aufmachen.

View File

@ -0,0 +1,2 @@
Name=Key
Description=Use to open something.