Hi guys, I'm new here, but I want you to know that I followed etiquette, and did plenty of searching through both the alivemod.com forums and the associated wiki before making a new thread!
Getting on with it...
I want to have an MHQ that is a CAS (transport) vehicle. This way I can have the MHQ orbit the AO. For me, this is much different than the "insertion" setting on the multispawn module.
Foolishy, I assumed that I could simply sync the multispawn module to the CAS (transport) module and bada-bing-bada-bang. When that didn't work, I came across this piece of script in the wiki:
this setvariable ["CS_TYPE","CAS"]; //Type can be "TRANSPORT" or "CAS" or "HYBRID"
Optional:
this setvariable ["CS_CALLSIGN","Your Callsign"]; //Callsign of the unit
this setvariable ["CS_HEIGHT",_height]; //Altitude of the landing site
this setvariable ["CS_CODE","persistent _code as 'string';"] //custom init line code
this setVariable ["CS_SLINGLOADING", false]; //disables sling loading on transport helis
this setVariable ["CS_CONTAINERS",0]; //number of crates to spawn around a transport heli (0 to disable)
Supposedly, this script can be used in the init line of a vehicle so that it can then be synced to the CS module for access to those features. I could then sync said vehicle to the multispawn module. This solution would be adequate; however, i get a script error from the editor when I use this code:
this setvariable ["CS_TYPE","TRANSPORT"]; //Type can be "TRANSPORT" or "CAS" or "HYBRID"
//Optional:
this setvariable ["CS_CALLSIGN","RODEO ONE"]; //Callsign of the unit
this setvariable ["CS_HEIGHT",_20]; //Altitude of the landing site
//this setvariable ["CS_CODE","persistent _code as 'string';"] //custom init line code
this setVariable ["CS_SLINGLOADING", false]; //disables sling loading on transport helis
this setVariable ["CS_CONTAINERS",0]; //number of crates to spawn around a transport heli (0 to disable)
call{this setvariable ["CS_TYPE","TRANSPORT"]; |#| //Type can be "TRANSPORT" or "CAS" or "HYBRID"
error invalid number in expression
I am not a scripter by any means. I have enough knowledge to dissect someone else's work and can sometimes make frankenscritps. I have tried as many reasonable variations as I can think of.
["CS_TYPE", "_TRANSPORT"];
["CS_TYPE", "CAS"];
["CS_TYPE", "TRANSPORT"];
["CS_TYPE", "_CAS"];
["CS_TYPE", "HYBRID"];
["CS_TYPE", "_HYBRID"];
["CS_TYPE", "_1"];
["CS_TYPE", "1"];
etc.
To make matters more complicated I am using a helicopter from RHS, but I don't see any specific errors related to that.
Could anyone shed some light on this? Either getting the multispawn module to cooperate with a CAS module, or by helping me with this init script so that I can work around it. Also, I'm open to out-of-the-box suggestions. Any help would be appreciated!