Battlefield Modding Tutorials BFMODS https://battlefieldmodding.com/ssm/phpBB3/ |
|
SSM Scripting Structure Question https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=2520 |
Page 1 of 1 |
Author: | VOLTANO [ Fri Dec 15, 2006 10:35 am ] |
Post subject: | SSM Scripting Structure Question |
As you see in the ObjectSpawnTemplates.con files, the way the scripting is structured where as there are several lines of code and then there are either spaces between the lines or rem *** .( BF1942 DC ) For example, this following set of codes I understand the spacing structure because each 'addTemplate' refers to a corrisponding code set ( as shown below ) ObjectTemplate.Active KnifeAxisComplex ObjectTemplate.AddTemplate BRDM2SupplyDepot ObjectTemplate.AddTemplate BRDM2VehicleSupplyDepot ObjectTemplate.AddTemplate repairpoint ObjectTemplate.Active BRDM2SupplyDepot ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 ObjectTemplate.Active BRDM2VehicleSupplyDepot ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 ObjectTemplate.Active repairpoint ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 So each template has a space separating the code line groups. I used the following code in my server and it crashed. ![]() ObjectTemplate.Active Remington ObjectTemplate.magSize 64 ObjectTemplate.numOfmag 8 ObjectTemplate.reloadtime 0.1 ObjectTemplate.roundOfFire 2 ObjectTemplate.setGoBackOnRecoil 1 ![]() ![]() ------------------------------------------------- ![]() Would it be the style where there are spaces like the following ? Space Style ObjectTemplate.Active KnifeAxisComplex ObjectTemplate.AddTemplate BRDM2SupplyDepot ObjectTemplate.AddTemplate BRDM2VehicleSupplyDepot ObjectTemplate.AddTemplate repairpoint ObjectTemplate.Active BRDM2SupplyDepot ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 ObjectTemplate.Active BRDM2VehicleSupplyDepot ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 ObjectTemplate.Active repairpoint ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 Or rem *** Style ObjectTemplate.Active KnifeAxisComplex ObjectTemplate.AddTemplate BRDM2SupplyDepot ObjectTemplate.AddTemplate BRDM2VehicleSupplyDepot ObjectTemplate.AddTemplate repairpoint rem *** ObjectTemplate.Active BRDM2SupplyDepot ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 rem *** ObjectTemplate.Active BRDM2VehicleSupplyDepot ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 rem *** ObjectTemplate.Active repairpoint ObjectTemplate.radius 3 ObjectTemplate.workOnVehicles 1 ObjectTemplate.workOnSoldiers 1 rem *** Thank you for your advice and keep up the good work on this helpful & informative website. ![]() |
Author: | Why Two Kay [ Fri Dec 15, 2006 2:06 pm ] |
Post subject: | |
Author: | Zaitsef [ Fri Dec 15, 2006 2:55 pm ] |
Post subject: | Re: SSM Scripting Structure Question |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |