We know that lines called "
ObjectTemplate.addTemplate" can be removed by activating it's "create complex" and counting down the
add lines starting with zero for the first
add and acquiring the "
magic number" to use in the 'removeTemplate x' number thingy.
But can we also use this method to remove a line of code that does NOT have the word
add in it ?
For example :
In the following complex,
rem ------------------------------------------------
rem *** Suicide boat Firearms ***
rem ------------------------------------------------
ObjectTemplate.create FireArms KamikazeBoatFireArms
ObjectTemplate.setNetworkableInfo KamikazeBoatGunInfo
ObjectTemplate.setAsynchronyFire 1
ObjectTemplate.projectileTemplate KamikazeBoatBomb
ObjectTemplate.projectilePosition 0/1/0
ObjectTemplate.magSize 1
ObjectTemplate.numOfMag 1
ObjectTemplate.velocity 0
The line of code above in
blue would be counted as
Template number 2.
Therefore, would the following code be valid to remove it ?
ObjectTemplate.Active KamikazeBoatFireArms
ObjectTemplate.removeTemplate 2
It would seem logical that utilizing the standard removeTemplate formula would also work in a case such as above.
Please let us know if this is true for these types of code lines or is there more to it that we are missing.
Perhaps some of you have tried this, but there is something about the BF1942 engine that doesn't read it like that.
Any additional insight into this would be good to know.
Thank you
-------------------------