May be a noob question, but all the stats of generated entities in scene.blk get wiped, so how do I make customized vehicles that are saved when I load up the scene? How do you make and use an entities.blk file?
Some data still cannot be synchronized.
So you may not see your changes in multiplayer.
For example, animchar__objTexReplace:object
and "attach_decorators__templates:array"
will only take effect in a single instance of the entity in scene.blk. they are not working for player-generated vehicles.
You can copy scene.blk and then rename file to entities.blk.
Clean file (ctrl+a for select all code) and then write code.
Entities code looks like it:
entityName{
_override:b=yes
_extends:t="game_rendinst"
ri_extra__name:t="metal_barrel_a"
}
-
entityName
- it’s just entity name that you can find in create entity (for example game_rendinst or mp40_gun or gaz_67) or custom names that you want to add in game. -
_override:b=yes
- Add it if you want to override old entity code. -
_extends:t="entityName"
- Add it for add information from another entity. In example I added info from game_rendinst and only. So myentityName
entity will be works like game_rendinst entity. -
ri_extra__name
- It’s entity property. It can be any even if original object don’t had it.
For example this code:
"attach_decorators__entities:list<eid>"{
}
"attach_decorators__templates:array"{
"attach_decorators__templates:object"{
relativeTm:m=[[1,0,0][0,1,0][0,0,1][0,0,0]]
template:t="entityName"
}
}
As result it will give ability to attach other objects to this entity.