Hello! I'm wondering if its possible to make your own item, for example i want to make an ornament item that already exist in game pickup-able to the inventory, it is already existing in game as a movable entity rather than a inventory item.
If it's possible, anyone care to say how?
Thankful for help
-risb3rg
(10-09-2011, 07:29 PM)risb3rg Wrote: [ -> ]Hello! I'm wondering if its possible to make your own item, for example i want to make an ornament item that already exist in game pickup-able to the inventory, it is already existing in game as a movable entity rather than a inventory item.
If it's possible, anyone care to say how?
Thankful for help
-risb3rg
Umm... I don't understand. If you mean from moveable to inventory item, it's like this.
Take the item's .ent file, copy that code inside it. Really hard to explain...
You'll have to make the picture by yourself. Remember to add alpha channel.
Just use your head. It isn't so hard.
Code:
<UserDefinedVariables EntitySubType="Puzzle" EntityType="Item">
<Var Name="Health" Value="100" />
<Var Name="Toughness" Value="0" />
<Var Name="MaxFocusDistance" Value="0" />
<Var Name="MainPhysicsBody" Value="" />
<Var Name="ShowMesh" Value="true" />
<Var Name="DissolveOnDestruction" Value="false" />
<Var Name="DissolveTime" Value="1.0" />
<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="ShowHints" Value="true" />
<Var Name="StaticMoveCheckCollision" Value="false" />
<Var Name="StaticMoveStartSound" Value="" />
<Var Name="StaticMoveStopSound" Value="" />
<Var Name="StaticMoveLoopSound" Value="" />
<Var Name="RandomizeAnimationStart" Value="true" />
<Var Name="SubItemTypeName" Value="NAMEHERE" />
<Var Name="ImageFile" Value="PICTURENAMEHERE.tga" />
<Var Name="PickSound" Value="Generic" />
<Var Name="TempVar" Value="0" />
</UserDefinedVariables>
Just noticed now i put it in a strange way, hard to understand. But yeah you basically got my point, going to try it out now. Will come back with results, thanks.
Where do i put the picture then?
(10-09-2011, 07:38 PM)risb3rg Wrote: [ -> ]Where do i put the picture then?
How about in the same folder as the entity? Also, you wouldn't want to overwrite the original entity. Keep things away from the original files.
I'm not overwriting , im renaming it. (And of course keeping a copy of the original)
But i still don't understand how to do this.... :>
(10-09-2011, 08:18 PM)risb3rg Wrote: [ -> ]But i still don't understand how to do this.... :>
Open the entity in the model editor. Then at the top pick
Settings > User defined variables. For
Type pick "Item." For
SubType pick "Puzzle." For
SubItemTypeName type something in. For
ImageFile choose the image you want to represent the item in the inventory. Save. Place in your map. Save. Have fun.