Jump to content

RotorVR

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by RotorVR

  1. Here is the code I was using. Even if unwilling to share example scripts that others may have worked hard on, I'd love if I could get any help on my work: THIS WORKS: I used CTLD's built-in functions to spawn a crate via standard DCS trigger and DO Script: ctld.spawnCrateAtZone("blue", 2701, "Crate Factory TEST") --spawns a BLUE coalition HMMWV at the trigger zone "crateSpawnTrigger" THIS WORKS: I used CTLD's built-in functions to designate a trigger zone to be a crate dropzone and count every 5 seconds via normal DCS trigger Do Script: ctld.cratesInZone("Crate Dropzone TEST",200) THIS WORKS: I tried editing CTLD's crates in zone function as per below so that it adds to the flag value rather than just counting and replacing the value. I got that to work, so it is now adding onto a current flag value cumulatively. I had it pull the value and add 2 to it for every crate in the zone. NEED HELP: My attempts to have the crate despawn immediately following it being counted is not working. I have marked the line in bold in the code quote below. NEED HELP: The message to all to announce the delivery and supply count is also not working. I have marked the line in bold in the code quote below. If anyone can help me with the message line and the despawn line I would be really appreciative! If I can get the despawn(destroy) line to work and the message to work then I'll have the crate supply delivery functioning! I would love any help at all.
  2. I am curious, are there any good examples out there of a script that enables tracking of a supply count for an airfield or FARP that is provided by crate delivery? -track supply value for an airfield -add to supply value with delivering crates and despawning said crate once delivered -subtract from supply value with takeoff event and add with landing event I see lots of servers do this and for our little private scenario in a small group I’d prefer to avoid trying to build something from the ground up. Does anyone have any good example that they could reference or would be willing to share? I experimented using CTLD’s crate counter function and associating that with a flag value that I associated with an airfield but I think most scripts use a table value instead of flag counters and it counts any crate whether it’s a proper supply crate or a humvee crate. I don’t know any scripters to bounce ideas off of.
×
×
  • Create New...