Author: sarogahtyp
Author Website:

Requirements: No addons required

Version: 0.5 Alpha

Short description: Gives mission designers the ability to delete and spawn their editor created units, vehicles and waypoints as often as they want and at the time they wanna.

Date: 2017-06-07 11:10

Comments: (0)


Sarogahtyps Spawn Script Creator - SSSC


Gives mission designers the ability to delete and spawn their editor created units, vehicles and waypoints as often as they want and at the time they wanna. Its partially very similiar to Jebus - Just Editor Based Unit Spawning written by @dreadpirate but has complete different way of using and of course very different scripting methods.

units and vehicles spawn with the same behavior, damage, loadout (and so on) as they had before they were deleted
waypoints are synced with other waypoints and triggers as they were before they were deleted
every spawned object has the same group assignement as prior deletion

see the full list of what is stored and reset after spawning in spoiler:

Installation / Usage:
For usage instructions and information of how to use the Sarogahtyps Spawn Script Creator - SSSC please refer to the included documentation and/or example mission.

Known issues:
1. A set of group with e.g. index 0 cant interact with waypoints or triggers of a set of groups marked with 1. If u need to interact groups with the same waypoints and trigger then you have to ensure that they are marked with the same index.

2. Found a bug if a group waits at a join (or join and lead) waypoint for the other group and then using save, delete and spawn methods at this situation. Both groups r double spawned if that bug encounters and after that they behave weird. I think I know why that happens and will fix it soon.

Future plans:
implement option to pass mission designers custom code for execution after spawning (like EHs)
store and reset units trait - DONE
store and reset units hitparts - DONE
store and reset vehicles hitparts - DONE
store an reset vehicles loadout - DONE
add killed EH for group leaders to ensure group handling works after leader died - DONE
add function to update known triggers (if someone creates triggers during mission) - DONE
add options array to switch storing of specific info on/off - DONE
relase BETA version
add function to copy the whole spawn script to clipboard. with this feature mission designers are able to create their own spawn script without saving all information to memory during mission.
release FINAL version

v0.5 Alpha
fixed a bug with editor given variable names (thx for report @gavc)
added saving of stuff in backpacks, vests and uniforms inside of vehicle inventories.
added saroSSC_fnc_set_options - now u r able to set saving options for units and vehicles. see fn_set_options.sqf header for further informations. this function has to be called before saroSSC_fnc_save. it will destroy all allready saved information because of array structure changes.
added support for setFace and face
added support for setNameSound and nameSound
added support for setPitch and pitch
added support for setAmmo and ammo
added support for setBleedingRemaining and getBleedingRemaining
added support for getOxygenRemaining
added support for unitRecoilCoefficient
restructured some array for faster handling

v0.4 Alpha
added new function to update known triggers
added vehicle loadout support
substituted some forEach with count to speed up things a bit
did some clean up work on scripts
added killed eventhandler to leaders to get script also working if a leader dies
added support for partial hitpoints of units and vehicles.

v0.31 Alpha
fixed a bug with muliple deletions and spawns, it was not working - now it is
added handling of units trait (medic, engineer, explosiveSpecialist, UAVHacker, camouflageCoef, audibleCoef, loadCoef)

v0.3 alpha
- Initial release

Forum topic:
- BI forums

Enable javascript to be able to download from Armaholic please!

Tags: Delete,   Editor,   Markers,   Script,   Spawn,   Units,   Vehicles