Wolfenswan's function library

Party-approved future science plus handbooks for the revolution
User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 07.03.2014

taskAmbush Improvements:
- better comments
- removed need to always find a road position
- now accepts "Killzone" parameter (radius around position where group will engage)
- added debug markers

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 11.04.2014:

renamed tripFlare to createTripflare

New functions:
* createCAS - causes a CAS strafing run at given location (guns, rockets or both)
* createOrdnance - creates an artillery projectile at given location (plus sound)
* createLightning - creates a "ZEUS lightning" at given location

See function comments for details. All of these can already be done in-game by using the modules under "effects" and "zeus". The function simply make them easier to call by script.

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 21.04:
Fixed potential teleport-issue with taskDefend/enterBuilding

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 07.05.2014:
New threshold variable for createGarrison/taskDefend:
Defines max. percentage of building positions that can be taken in any given building. Threshold value can be parsed as parameter to createGarrison (optional). In both scripts default threshold value can be set at the top of the sqf.

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 20.05.2014:
Fixed taskCrew which wasn't working right (units weren't crewing statics/vehicle guns properly).
This also fixes taskDefend indirectly.

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 25.05.14:
* more fixes to ws_fnc_enterBuilding (they had a tendency to wander off)
* added config.hpp to make it easier to add the functions to description.ext (check the included .ext for example).

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 21.06.14:
* improved taskLand (will look for better spots to land)
* new: collectObjects - like collectMarkers but returns array of objects

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 26.06:
Improved collectMarkers & collectObjects (no longer restricted to single item & numbered list), added collectObjectsNum as a less ressource-intensive alternative to collectObjects

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 04.11.2014:

New: taskConvoy
Selection of vehicles will follow the given route to it's destination, where all non-crew will disembark and take sentry waypoints.
Should they be engaged the convoy will halt, dismount and engage enemies.

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan »

Update 10/01/2015:
Improvements to createGarrison

Update 12/01/2015:
- Improvements to taskLand
- fixed an issue in taskConvoy which caused crew in a wheeled combat vehicle to dismount
- new: fn_setGVar - sets a global variable if it is nil and optionally pub-vars it

Updated OP to (from now on) reflect whether ws_fnc in FA template is up-to-date as well as instructions on how to update.

Post Reply