Battlefield Modding Tutorials BFMODS https://battlefieldmodding.com/ssm/phpBB3/ |
|
Adding a boat to a level thats not yet in its templates https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=2759 |
Page 1 of 1 |
Author: | wingo033 [ Thu Mar 08, 2007 10:13 pm ] |
Post subject: | Adding a boat to a level thats not yet in its templates |
Im using coral sea..and i want to add the patrol boat from invasion of the philippines to it. I copied the code from invasions rfa file..the template and objectspawn code and just put it in the respective con files in the coral sea level..when i launch the level the boats dont show up. Heres the code. ObjectSpawn.Con Object.create ptBoatSpawner Object.absolutePosition 1085.71/40.93/1207.02 Object.rotation -83.3516/0/0 Object.setOSid 1 Object.setTeam 1 Object.create ptBoatSpawner Object.absolutePosition 958.13/40/999.72 Object.rotation 180/0/0 Object.setOSid 2 Object.setTeam 2 OSTemplate.con ObjectTemplate.create ObjectSpawner ptBoatSpawner ObjectTemplate.setObjectTemplate 2 Elco80 ObjectTemplate.setObjectTemplate 1 Type38 ObjectTemplate.SpawnDelay 20 ObjectTemplate.SpawnDelayAtStart 0 ObjectTemplate.TimeToLive 25 ObjectTemplate.Distance 10 ObjectTemplate.DamageWhenLost 20 Not sure what could be wrong here..if someone could help me out id appreciate it..thanks |
Author: | Natt [ Thu Mar 08, 2007 11:04 pm ] |
Post subject: | |
You can't add templates serverside, only edit existing or add to existing templates. If you didn't add a template then it might be the Object.setOSid as this is controlled by which team holds the base with that id#. tutorial.php?page=replacevehicles.html and viewtopic.php?t=552 may help. |
Author: | Zaitsef [ Sat Mar 10, 2007 2:34 pm ] |
Post subject: | |
Author: | sephiroth [ Sat Mar 10, 2007 4:05 pm ] |
Post subject: | |
Author: | Zaitsef [ Sun Mar 11, 2007 1:16 am ] |
Post subject: | |
Author: | nbforrest [ Sun Mar 11, 2007 4:25 am ] |
Post subject: | |
Author: | sephiroth [ Sun Mar 11, 2007 5:17 am ] |
Post subject: | |
Author: | Zaitsef [ Sun Mar 11, 2007 2:41 pm ] |
Post subject: | |
good point, lets ha... investigate this ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |