DavisBrown723 / SpyderAddons

You may grab the latest release at [https://steamcommunity.com/sharedfiles/filedetails/?id=579263829]. A collection of modules in order to aid mission makers in adding depth to their missions. Latest stable version: http://steamcommunity.com/sharedfiles/filedetails/?id=579263829
12 stars 3 forks source link

[Optimization] 1.55: Utilize incoming scripting command improvements for all modules #8

Closed DavisBrown723 closed 8 years ago

DavisBrown723 commented 8 years ago

Update 1.55 will be bringing many new scripting commands to replace/improve upon existing commands/functions.

Can currently improve existing module code: selectRandom: https://community.bistudio.com/wiki/selectRandom pushBackUnique: https://community.bistudio.com/wiki/pushBackUnique getRelDir: https://community.bistudio.com/wiki/getRelDir getRelPos: https://community.bistudio.com/wiki/getRelPos

shadez95 commented 8 years ago

pushBackUnique - is this to make sure that all the elements are the same 'typeName'?

DavisBrown723 commented 8 years ago

It ensures that the value you are adding to the array is unique to that array

ex.

[1,2,3] pushBackUnique 4 // Works [1,2,3] pushBackUnique 3 // Fails

DavisBrown723 commented 8 years ago

Done 613ea45 93f1bb4

shadez95 commented 8 years ago

FYI... These commands haven't been implemented for Linux users yet. Linux users are still on 1.54 as of couple days ago. Haven't heard of update for Linux since then.