Sorry i haven't tried it yet, i have a lot of work in real life.Vilespring wrote:did it work?

Sorry i haven't tried it yet, i have a lot of work in real life.Vilespring wrote:did it work?
Code: Select all
rem
rem *** medicwell ***
rem
ObjectTemplate.create Bundle medicwell
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.geometry well_eu_M1
ObjectTemplate.aiTemplate mediclocker_m1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate medicwellRepairpoint
ObjectTemplate.setPosition 0/0/0.5
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.create SupplyDepot medicwellRepairpoint
ObjectTemplate.radius 2
ObjectTemplate.team 0
ObjectTemplate.workOnVehicles 0
ObjectTemplate.workOnSoldiers 1
ObjectTemplate.setHealth -1 4.0 0
THX!takiwa wrote:sure, just bundle the heal code to the object...
Code: Select all
rem rem *** medicwell *** rem ObjectTemplate.create Bundle medicwell ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.geometry well_eu_M1 ObjectTemplate.aiTemplate mediclocker_m1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 rem ------------------------------------- ObjectTemplate.addTemplate medicwellRepairpoint ObjectTemplate.setPosition 0/0/0.5 ObjectTemplate.setRotation 0/0/0 ObjectTemplate.create SupplyDepot medicwellRepairpoint ObjectTemplate.radius 2 ObjectTemplate.team 0 ObjectTemplate.workOnVehicles 0 ObjectTemplate.workOnSoldiers 1 ObjectTemplate.setHealth -1 4.0 0
You can stick it at the bottom of the Objects.con for the Well object in the Objects.rfa file.MillerMod wrote:But where to put this code? :S
Well i just want to add this in a map, so i do not want to modify the objects.rfa file.Swaffy wrote:You can stick it at the bottom of the Objects.con for the Well object in the Objects.rfa file.MillerMod wrote:But where to put this code? :S
Excuse my last comment. The code is to make a new static object using the 3D model of the Well object.MillerMod wrote:Well i just want to add this in a map, so i do not want to modify the objects.rfa file.Swaffy wrote:You can stick it at the bottom of the Objects.con for the Well object in the Objects.rfa file.MillerMod wrote:But where to put this code? :S
Will it work only in a custom map?
Code: Select all
ObjectTemplate.Active eu_well
ObjectTemplate.addTemplate mediclockerRepairpoint
I think this is good for using the already-existing Well object. But if he wants to make a separate object then the previous code would be adequate. Though this code is shorter and simpler to implement.freddy wrote:Code: Select all
ObjectTemplate.Active eu_well ObjectTemplate.addTemplate mediclockerRepairpoint