Jump to content
Sign in to follow this  
Charles Darwin

CAS EVAC script idea

Recommended Posts

Ok so I have an idea for a script but I am not sure it would work so before I spend much time trying to figure it out thought I would ask for advice and any helpful info

Basic Premise: In the event a player a player dies, his body must be retrieved and taken to a base hospital. When his body is taken to the base the body disappears and he is respawned.

Basic Idea for Implementation:

--------- add event handler to all players that when killed adds them to "deadarray"

--------- All players will respawn in a locked hangar far from mission. any players not in "deadarray" will be moved to the base hospital

--------- Players can interact with dead body when within so many meters of the hospital activating a script added to the corpse via event handler that will move the player associated with that corpse and ONLY the player associated with that corpse to the base hospital

so question is mainly if you were scripting this how would you tackle it? and how would you associate a specific corps with a specific player? My best guess would be an array like ["Mycorpse", "playername"] but this seems a very ugly way to do it and Im sure there is a more elegant way

Share this post


Link to post
Share on other sites

Just from reading description this doesnt seem to be what Im after I want other players to have t move the person's body back to base, that way players will strive really hard to not die and to try and save their squad mates.

this appears to just allow you to call in a medevac to remove dead bodies

Share this post


Link to post
Share on other sites

Well, if your intention is to have a dead player remain dead in a tiny locked room till his teammates physically collect him and bring him back to a field hospital I can assure you no one will play that mission. Might as well just turn off respawn entirely. In theory it sounds like a Really Cool Ideaâ„¢ but in practice it'll be aggravating and many dead players will simply never get collected. :) That's not fun, even in the name of "Realism".

I'd suggest pulling apart Norrin's Revive script since mechanically it works how you want it to. When you die your body is moved to some far away location (Boot Hill) while your camera remains on your body till someone revives it then you teleport back.

Share this post


Link to post
Share on other sites

Not meant for the general arma community since for most team work means shooting at the same target but i digress. Going to look at norins revive now

Share this post


Link to post
Share on other sites

Also check out the Event Scripts, especially onPlayerKilled. At first my thought was to use that since it runs when you are killed, but i wasn't able to tell how to collect the object of the dead body left behind so I then thought of Norrin. :)

Share this post


Link to post
Share on other sites

yeah same issue here the rest of it i think I could figure out but at all sure how to get the object details of the dead body

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×