I find way to load .lua files from inside the PDlC and my question is if i release some mods/maps with that code i´m violate the copyrights?
For example for load .lua breakable rocks:
Code: Select all
<extraSourceFiles>
<sourceFile filename="pdlc_forestryPack/scripts/destructibleMapObjects/DestroyedMapObjectsEvent.lua" />
<sourceFile filename="pdlc_forestryPack/scripts/destructibleMapObjects/MapObjectDestroyedEvent.lua" />
<sourceFile filename="pdlc_forestryPack/scripts/destructibleMapObjects/DestructibleMapObjectSystem.lua" />
</extraSourceFiles>Code: Select all
<vehicleTypes>
<type name="hb30" parent="baseAttachable" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="turnOnVehicle" />
<specialization name="pdlc_forestryPack.hydraulicHammer" />
</type>
</vehicleTypes>Code: Select all
<UserAttribute nodeId="xxxxx">
<Attribute name="destructibleType" type="string" value="ROCK"/>
<Attribute name="destructionVolume" type="float" value="100"/>
<Attribute name="dropAmount" type="float" value="2000"/>
<Attribute name="dropFillTypeName" type="string" value="STONE"/>
<Attribute name="groupId" type="integer" value="1"/>
<Attribute name="onCreate" type="scriptCallback" value="modOnCreate.onCreateDestructibleObjectsGroup"/>
</UserAttribute>