The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with custom entity
S4n1tyM0rs0 Offline
Junior Member

Posts: 14
Threads: 2
Joined: Feb 2012
Reputation: 0
#1
Problem with custom entity

I am trying to make custom entity for my custom story..
I wanted to give meat skin for laudanum, so meat would work as food for the player.
The only problem is that model of the entity goes always to the middle of map (Position 0 0 0).
But I can pick the item up where it's position really is. Invisible meat that increases health... Huh

Here's the entity file:

Spoiler below!
<Entity>
<EditorSession>
<ViewportConfig SelectedViewport="0" UsingEnlargedViewport="false">
<Viewport CameraPosition="0.000000 0.000000 20.000000" CameraTarget="0.000000 0.000000 0.000000" CameraZoom="0.916291" Preset="0" RenderMode="1" ShowGrid="true" />
<Viewport CameraPosition="20.000000 0.100000 0.000000" CameraTarget="0.000000 0.100000 0.000000" CameraZoom="0.916291" Preset="1" RenderMode="1" ShowGrid="true" />
<Viewport CameraPosition="0.000000 20.000000 0.000000" CameraTarget="0.000000 0.000000 0.000000" CameraZoom="0.916291" Preset="2" RenderMode="1" ShowGrid="true" />
<Viewport CameraPosition="0.305049 0.305049 0.305049" CameraTarget="0.000000 0.000000 0.000000" CameraZoom="4.550000" Preset="3" RenderMode="0" ShowGrid="true" />
</ViewportConfig>
<GlobalLightConfig AmbientLight="false" PointLight="false" />
</EditorSession>
<UserDefinedVariables EntitySubType="Health" EntityType="Item">
<Var Name="Health" Value="100" />
<Var Name="Toughness" Value="0" />
<Var Name="MaxFocusDistance" Value="0" />
<Var Name="MainPhysicsBody" Value="" />
<Var Name="EffectsOnSound" Value="" />
<Var Name="EffectsOffSound" Value="" />
<Var Name="EffectsOnTime" Value="1" />
<Var Name="EffectsOffTime" Value="1" />
<Var Name="EffectsOffLightColor" Value="0 0 0 0" />
<Var Name="EffectsOffLightRadius" Value="-1" />
<Var Name="StaticMoveCheckCollision" Value="false" />
<Var Name="StaticMoveStartSound" Value="" />
<Var Name="StaticMoveStopSound" Value="" />
<Var Name="StaticMoveLoopSound" Value="" />
<Var Name="SubItemTypeName" Value="fresh_meat" />
<Var Name="ImageFile" Value="fresh_meat.tga" />
<Var Name="PickSound" Value="Meat" />
<Var Name="HealAmount" Value="25" />
<Var Name="DissolveOnDestruction" Value="false" />
<Var Name="DissolveTime" Value="3.0" />
</UserDefinedVariables>
<ModelData Name="">
<Entities />
<Mesh Filename="E:/lux/redist/entities/item/fresh_meat/fresh_meat.dae">
<SubMesh Active="true" GroupID="0" ID="0" Name="pCylinder1" Rotation="0.000000 0.000000 0.000000" Scale="1.000000 1.000000 1.000000" SubMeshID="0" Tag="" Type="11" WorldPos="0.000000 0.000000 0.000000" />
</Mesh>
<Shapes>
<BodyShape Active="true" GroupID="0" ID="1" Name="Shape_1" RelativeRotation="0.000000 0.000000 0.000000" RelativeScale="1 1 1" RelativeTranslation="0.000000 0.000000 0.000000" Rotation="0.000000 0.000000 0.000000" Scale="0.040000 0.230000 0.040000" ShapeType="Cylinder" ShapeTypeID="1" Tag="" Type="8" WorldPos="0.000000 0.116365 0.000000" />
</Shapes>
<Bodies>
<Body Active="true" AngularDamping="0" BlocksSound="false" BuoyancyDensityMul="1" CanAttachCharacter="false" CollideCharacter="true" CollideNonCharacter="true" ContinuousCollision="true" GroupID="0" ID="3" LinearDamping="0" Mass="5" Material="Organic" MaxAngularSpeed="0" MaxLinearSpeed="0" Name="Body_1" PushedByCharacterGravity="false" Rotation="0 0 0" Scale="0.827838 1 1" Tag="" UseSurfaceEffects="true" Volatile="false" WorldPos="0.197757 0.015133 0.014043">
<Shape ID="1" />
<Children>
<Child ID="0" />
</Children>
</Body>
</Bodies>
<Joints />
</ModelData>
</Entity>
(This post was last modified: 02-05-2012, 03:31 PM by S4n1tyM0rs0.)
02-05-2012, 03:27 PM
Find


Messages In This Thread
Problem with custom entity - by S4n1tyM0rs0 - 02-05-2012, 03:27 PM
RE: Problem with custom entity - by Your Computer - 02-05-2012, 10:53 PM
RE: Problem with custom entity - by S4n1tyM0rs0 - 02-06-2012, 02:36 PM
RE: Problem with custom entity - by Your Computer - 02-06-2012, 02:52 PM
RE: Problem with custom entity - by S4n1tyM0rs0 - 02-06-2012, 03:13 PM
RE: Problem with custom entity - by Your Computer - 02-06-2012, 03:18 PM
RE: Problem with custom entity - by S4n1tyM0rs0 - 02-06-2012, 03:42 PM



Users browsing this thread: 1 Guest(s)