Jump to content

Sardaukar17

Member
  • Content Count

    37
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About Sardaukar17

  • Rank
    Private First Class

core_pfieldgroups_3

  • Occupation
    Self Employed

Contact Methods

  • Biography
    I like Map Making. Pretty amature at it but not afraid to go for large scale projects.
  1. Sardaukar17

    Working Multiplayer UAV

    What if the UAV is destroyed and you want it to respawn? Would you run into the sync problem again or can you just re-execute the script off the new unit?
  2. I would definatly tie the action menu to a vehicle or object. If you tie it to a player it will be there all game and get in the way when they need to change weapons and what not. You can set up a looping script for the addaction commands that waits for the player to be within a certain range of the vehicle and then fires all the addaction commands and scripts associated with them. Then on the back end of it you put a check to see when the player is outside the range and it deletes the actions from the players menu. I use it all the time for base building stuff and Armor factories and what not. I would post a snippet but I do not have my stuff with me. Plus it would all be in SQS which people don´t seem to like. It would go something like this though if it helps: #Start ~1 ?!(alive Player):goto "RemoveMenu"; ?(Player distance _NameofObject)<=7:goto "ActivateMenu"; goto "start"; #ActivateMenu _MenuOption1 = _NameofObject addAction ["Place H-Barrier", "barrier.sqf"]; #Check ~1 ?!(alive Player):goto "RemoveMenu"; ?(Player distance _NameofObject)>7:goto "RemoveMenu"; goto "Check" #RemoveMenu _NameofObject removeaction _MenuOption1; goto "start" I am sure I made some mistakes in there but you get the idea. It is very basic but it has worked for me on multiple maps. Now with this all it will do is give you the menu option "Place H-Barrier" and when selected it will start Barrier.sqf. In that script you would need to add the execution of another action menu script on the newly created item that will allow you to rotate it on atleast 1 axis and shift it´s position along the X and Y axis. Have each Barrier.sqf script execute the movement options script. It will save you allot of copy paste time. I would research all of this though I am going off memory. Good luck hope I helped
  3. What you might do would be to add the action to a vehicle or helicopter that you place in game. And you would have to add each item in the vehicle with the addaction command that you would want access to. You might also consider organizing it with multiple vehicles for different types of objects and what not.. and set yourself up a teleporter to the area the vehicles are in. I would try to keep it as simple as possible though. Otherwise it kind of defeats the purpose. Is this for an RPG concept?
  4. Not really sure there is a way to "hide" them other than to place them on the map in an area not used or seen by the players and then moved to location after your trigger fires. IF there is a way to hide units I would want to know it. I have other ideas for that!
  5. Well if it isn´t obvious I am no pro but If it is only running your script on the AI units if could be a locality problem in that if it is only running on the server it might make sense.. that it wouldn´t fire the script on a client machine. If you are the host though that makes you the server. Have you tested with the ? isServer : exit line just to see how it reacts? or ?! isServer just to see how it behaves. Might tell you more on if it is a locality issue. I would also think about trying executing the scripts with the unit name instead of [this] it may just be me but it seems it sometimes just gets confused. thats all I got. Hope I helped
  6. @Wickedstigma your awesome but No I can´t yet. In transition from one place to another and don´t have my main comp setup yet but I will don´t worry. I´ll use what you sent me to start learning SQF plus I will finally have to sit down and read the SQF tutorials. Lol and I was starting to get good at the SQS stuff. We´ll call it a good start lol @Myke Thank you sir. I´ve been doing really long work arounds for what you have there.
  7. Dude if I knew how to do that I would have lol. Just trying to be helpful in what way I can.
  8. This is a script I created for a rearming station at the end of a runway that identifies the vehicle and reloads it based on it's type. It doesn't have the finese of the above scripts but it does work perfectly. I create the vehicles in game and from the creation script I execute this script. It is a looping script that runs on the client machines. (I should note that this is for a Multiplayer Map) The _type and _veh are defined in the creation script. _Type is just a number I set the type of vehicle equal to and _veh is the name of the vehicle that was created with this line _veh = "A10" createVehicle (getPos planebuild1); Here is the script execution line: [_veh,_type] exec "repair.sqs" Here is the script itself sorry for the SQS but it is all I know: _Veh = _this select 0 _type= _this select 1 #start ~1 ?!(alive _veh): goto "exit" ?((player distance repair)<=50): goto "Type" goto "Start" #Type ?(_type==1):goto "A10J" ?(_type==2):goto "F35J" ?(_type==3):goto "AV8B2J" ?(_type==4):goto "AV8BJ" ?(_type==5):goto "SU34J" ?(_type==6):goto "SU39J" hint "Type not Found" ~1 goto "start" #A10J ?!(alive _veh): goto "exit" _veh removemagazines "1350Rnd_30mmAP_A10" _veh removemagazines "14Rnd_FFAR" hint "Rearming ~1 _veh addmagazine "1350Rnd_30mmAP_A10" _veh addmagazine "1350Rnd_30mmAP_A10" ~1 _veh addmagazine "14Rnd_FFAR" ~1 _veh addmagazine "14Rnd_FFAR" ~1 _veh addmagazine "14Rnd_FFAR" ~1 _veh addmagazine "14Rnd_FFAR" goto "Repair" #F35J ?!(alive _veh): goto "exit" _veh removemagazines "300Rnd_25mm_GAU12" hint "Rearming" ~3 _veh addmagazine "300Rnd_25mm_GAU12" ~1 _veh addmagazine "300Rnd_25mm_GAU12" ~1 _veh addmagazine "300Rnd_25mm_GAU12" Goto "Repair" #AV8B2J ?!(alive _veh): goto "exit" _Veh removemagazines "300Rnd_25mm_GAU12" _Veh removemagazines "14Rnd_FFAR" hint "Rearming" ~2 _Veh addmagazine "14Rnd_FFAR" ~1 _Veh addmagazine "14Rnd_FFAR" ~1 _Veh addmagazine "300Rnd_25mm_GAU12" ~1 _Veh addmagazine "300Rnd_25mm_GAU12" goto "Repair" #AV8BJ ?!(alive _veh): goto "exit" _Veh removemagazines "300Rnd_25mm_GAU12" hint "Rearming" ~1 _Veh addmagazine "300Rnd_25mm_GAU12" ~1 _Veh addmagazine "300Rnd_25mm_GAU12" ~1 _Veh addmagazine "300Rnd_25mm_GAU12" ~1 _Veh addmagazine "300Rnd_25mm_GAU12" ~1 _Veh addmagazine "300Rnd_25mm_GAU12" goto "Repair" #SU34J ?!(alive _veh): goto "exit" _Veh removemagazines "180Rnd_30mm_GSh301" _Veh removemagazines "40Rnd_S8T" hint "Rearming" ~1 _Veh addmagazine "180Rnd_30mm_GSh301" _Veh addmagazine "180Rnd_30mm_GSh301" ~1 _Veh addmagazine "180Rnd_30mm_GSh301" _Veh addmagazine "180Rnd_30mm_GSh301" ~1 _Veh addmagazine "40Rnd_S8T" _Veh addmagazine "40Rnd_S8T" ~1 _Veh addmagazine "40Rnd_S8T" ~1 _Veh addmagazine "40Rnd_S8T" goto "Repair" #SU39J ?!(alive _veh): goto "exit" _Veh removemagazines "180Rnd_30mm_GSh301" _Veh removemagazines "80Rnd_S8T" hint "Rearming" ~1 _Veh addmagazine "180Rnd_30mm_GSh301" ~1 _Veh addmagazine "180Rnd_30mm_GSh301" ~1 _Veh addmagazine "180Rnd_30mm_GSh301" ~2 _Veh addmagazine "80Rnd_S8T" goto "Repair" #Repair ?!(alive _veh): goto "exit" ?!((player distance repair)<=50): goto "start" Hint "Repairing" ~5 _Veh setdamage 0 ?!(alive _veh): goto "exit" ?!((player distance repair)<=50): goto "start" Hint "Refueling" ~5 _Veh setfuel 1 Hint "Complete" goto "Check" #check ~1 ?((player distance repair)>50): goto "start" goto "check" #exit exit If you don't want to set it up the way I did you can use this line instead of the name of the vehicle and it will work as well _veh = vehicle player Even if it doesn't help you specifically I wanted it to be here so others can see a different (maybe even noobish) way of doing it. It does work though and that is all that counts
  9. See what happens when we all get along and actually talk to each other instead of making assumptions and razzing people. I feel as if the world just became a better place.. it almost makes me want to cry. (This will only be here for 10 sec before getting deleted and I get yelled at too)
  10. Sardaukar17

    Setside for Vehicles

    If it was just a matter of weapons I would have done that already. The Opfor jets have only 2 to choose from. Both of which are generally slower in speed and the SU34 is a huge Moose flying around compared to the USMC jets. To make it a fair fight you have to give both teams access to the same vehicles.. and the more options the better. I'm going to keep thinking about it. There has to be a work around somehow
  11. Sardaukar17

    Setside for Vehicles

    Not when it comes to Jets. The USMC side has many more options than the east side
  12. Sardaukar17

    Setside for Vehicles

    By addon are you referring to creating my own vehicles and something the players would have to load prior to joining the map? If so I want to stay away from that. I try to make all my maps playable without DLing anything. Now if there is a way to do that where they wouldn't have to DL my vehicles.. that they would somehow be created in game through scripting or the editor I am all ears. But it is beyond my knowledge level
  13. Sardaukar17

    Setside for Vehicles

    Ok here is an idea then.. I usually play and test my maps via dedicated server. SO couldn't we make a script that only runs on the server that places a small but Faction oriented object on top of the players vehicle?... I guess then though it would only exist on the server and would be irrelevant anyway lol... Just thinking out loud here.. Well no.. the creation script could be set to run on the server for the players vehicles as well as the clients.. and then the script that places the ghost object on the vehicle would only be server.. .. same problem though I guess. It still wouldn't be seen by the clients unless there is a way to broadcast it's position and faction but not it's model
  14. Sardaukar17

    Setside for Vehicles

    Yes your right about the Faction of the vehicle... What about a work around based on the side of the player. It only matters when a player is in the vehicle using it... So would it be possible to setenemy (or setfriendly can't remember the command atm) East for a USMC player. Would something like that work possibly..? The side of the player is the key I think.
  15. What I have read would imply that this is not possible but nothing out right says it. I have a mission where East players can get into West vehicles that are spawned in game through an addaction menu. Everything works fine.. but when the players are duking it out any East player in a USMC vehicle shows friendly to the West side which gives them an unfair advantage because West can't distinguish between friend or foe easily. Is there a way reset the vehicle as enemy once the player is inside so that it shows correctly? Or to set the vehicle itself equal to a side?
×