Animation-CobExamples

Some COB Examples, written by Emmanuel. These are incredibly useful, but need to be cleaned up a little before anyone can understand them ;)

"all loop or script activity never act more 10time per second nor be syncronous :security sentence can be syntaxed so: sleep rand(100,150); =random timed pause during 1000/100 to 1000/150 second placed in each loop and at create if exist;"


My translation:

Scripts only run 10 times per second, and cannot run synchronously.

This function:

    sleep rand(100,150); 

would give a random pause between 100 and 150 milliseconds when placed in a looping function.


commented/tutorial scripts:

   * Units1:.bos -empty script (wall or kamikaze )
   * Units2:.bos -weapon script (bomber, sub, shield,vertical missile )
   * Units3:.bos -weapon with rotational turret & gun script (tank)
   * Units5:.bos -random cosmetic script (all) 


without comment/explanation:

   * Units4:.bos -weapon height missile/bomb hide when fire/drop script (vertical missile launcher)
   * Units6:.bos -factory script (static house)
   * Units7:.bos -activation button script (radar/jam/sonar/extractor/converter/solar )
   * Units8:.bos -cosmetic explosion when die(all)
   * Units9:.bos -low heal detector(all)
   * Units10:.bos -wind generator follow the direction and speed of map wind
   * Units11:.bos -builder script (magic)
   * Units12:.bos -builder with nano turret script (yes)
   * Units13:.bos -open/close ground script (door)
   * Units14:.bos -star/stop move animation script (mobile)

Back to Mod and Unit Development

--Maackey 17:58, 8 August 2009 (UTC)

Retrieved from "http://springrts.com/wiki/Animation-CobExamples"

This page has been accessed 289 times. This page was last modified 17:37, 13 March 2010.


 
 

Page editing toolbox

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in
Special pages
New pages
File list
Statistics
Bug reports
More...

Site layout created by Roflcopter.