Blitzen 10 Posted February 6, 2011 I'm trying to create some good CAS support with the FFUR/SLX mod. The mod comes with the SLX Targets, which are blank objects that units can target. I was hoping someone could make me a script that would allow me to name a target, and then have it be placed (with maybe a +10/-10 radius) on the leader of an infantry squad? I wanna learn how to make scripts so if someone could walk me through this or point me to a good tutorial that would be awesome. Secondly, I was wondering if there is a way to have a unit give support and then return to the location of their support waypoint? Thanks for the help, Blitz Share this post Link to post Share on other sites
Aldo15 11 Posted February 7, 2011 Hi Blitzen. I've read your post, but I'm very confused, because my translator is not very good. I don't speak english fluently. I'm sorry! Which are SLX targets? Secondly, I was wondering if there is a way to have a unit give support and then return to the location of their support waypoint? If I am not wrong, I think there is a waypoint that called it support. I hope that help!!! Regards... Aldo Share this post Link to post Share on other sites
Blitzen 10 Posted February 7, 2011 Which are SLX targets? [/Quote] SLX targets are an addon (?) that comes with the FFUR 2006/SLX mod. Essentiall they are invisible objects that are targetable by people, vehicles, planes, etc. Since they can be attacked by planes, they are useful to put on objects that you want to be strafed. I want a script that will place one of these onto the squad leader of a specific squad. If I am not wrong, I think there is a waypoint that called it support. You are correct, there is a support waypoint. However, when support is called the vehicle will move into position, offer support, but then stay at that location. I want them to move into position, offer support and then return to a safer postion behind the front lines. Share this post Link to post Share on other sites
ww2weasel 10 Posted February 8, 2011 (edited) SLX targets are an addon (?) that comes with the FFUR 2006/SLX mod. Essentiall they are invisible objects that are targetable by people, vehicles, planes, etc. Since they can be attacked by planes, they are useful to put on objects that you want to be strafed. I want a script that will place one of these onto the squad leader of a specific squad. Perhaps a simple loop script #start ?!alive leader group1:exit SLX_inv_object setPos getpos Leader group1 ~10 goto "start" You are correct, there is a support waypoint. However, when support is called the vehicle will move into position, offer support, but then stay at that location. I want them to move into position, offer support and then return to a safer postion behind the front lines. [groupOne, 1] setWPPos getMarkerPos "MarkerOne" Translation: [name of group, 1st waypoint] set waypoint to marker named MarkerOne or you could getPos to an object like a game logic, etc... Reference this site for additional scripting support... http://www.ofpec.com/COMREF/index.php?action=details&id=323&game=OFP Edited February 8, 2011 by WW2Weasel Share this post Link to post Share on other sites
raum_schiff 0 Posted February 8, 2011 Have you tried snYpir's SP/MP support pack http://www.ofpec.com/ed_depot/index.php?action=details&id=161 Quite easy to use with original ofp ... as for FFUR/SLX I don't know is this works out of the box. Share this post Link to post Share on other sites
Sepe 1 Posted February 13, 2011 Perhaps a simple loop script #start ?!alive leader group1:exit SLX_inv_object setPos getpos Leader group1 ~10 goto "start" 10 seconds is a relatively long time for a moving unit, though, even an infantry one. But that's always the art of balancing (a too short time can cause problems especially on older computers and CPU-heavy missions) If you want the 10 meter radius, this should work: objectname setPos [(getPos leadername select 0 + random 10 - random 10),getPos leadername select 1 + random 10 - random 10),(getPos leadername select 2)] This will place the object within 10 meters of the leader, at the same height. If you want the altitude to be randomized, simply add a "+ random 10" to the last variable (wouldn't suggest the "- random 10" after it, as the object will end up underground about half of the time) Share this post Link to post Share on other sites
Blitzen 10 Posted February 15, 2011 Perhaps a simple loop script #start ?!alive leader group1:exit SLX_inv_object setPos getpos Leader group1 ~10 goto "start" Yes, a simple loop script is what Im looking for :). However, I want to use this script for numerous groups and targets. I know that you could define the name in the script for the groups/targets but I want to define them when I call the script. Someone thing like this [Group name, target name] exec "Blahblah.sqs" [groupOne, 1] setWPPos getMarkerPos "MarkerOne" Translation: [name of group, 1st waypoint] set waypoint to marker named MarkerOne I get how this would move a group's waypoint to another location, but does a group ever move past a support waypoint? If so, couldnt I use a support waypoint --> Move waypoint -->Cycle? Thanks for the help Share this post Link to post Share on other sites
ww2weasel 10 Posted February 15, 2011 Yes, a simple loop script is what Im looking for . However, I want to use this script for numerous groups and targets. I know that you could define the name in the script for the groups/targets but I want to define them when I call the script. Someone thing like this [Group name, target name] exec "Blahblah.sqs" You can do this in a myriad of ways. Really... I will give you some examples then test in mission editor. ok - but you have to do a small setup first. Make a trigger, west, present, once. Then create a very large trigger to encompass a very large area like say 5000 by 5000. if using aircraft have to go 30000 by 30000 at least. <If trigger is too small - units will drop out of the triggers array of west troops initially detected.> Name the trigger wlist. do same for east trigger and name elist. create 4 west & east groups finally select a civillian east cop and setup as player - put the unit between both groups. Setup complete.... In activation field put: you could substitute player with a marker or object or position west side - do one line at a time. {leader group _x doMove getpos player}forEach list wlist; {_x doMove getpos player}forEach list wlist {{_x doMove getpos player}forEach units leader group _x}forEach list wlist I could do more too show you - but I think it would be beating a dead horse. Sometimes the best scripts are simple ones. Not necessary to do below - but would setup a meeting engagement. east side - do one line at a time. {leader group _x doMove getpos player}forEach list elist; {_x doMove getpos player}forEach list elist {{_x doMove getpos player}forEach units leader group _x}forEach list elist for targeting: helps but not assured instant firing unit still needs to acquire - can do a dowatch but if too many units. the unit doing the watching could end up spinning around. {_x reveal _x foreach list wlist}foreach list elist {_x reveal _x foreach list elist}foreach list wlist Watch what happens and think hmmm, where can I use this in my mission. maybe - maybe not... this is aqequate for a simple script: [Group name, target name] exec "Blahblah.sqs" I get how this would move a group's waypoint to another location, but does a group ever move past a support waypoint? If so, couldnt I use a support waypoint --> Move waypoint -->Cycle? yes use a trigger and use the synchronize and switch option to navigate to different waypoints. and use the below to move the same waypoint or different ones according to your mission needs.. [name of group, 1st waypoint] set waypoint to marker named MarkerOne ---------- Post added at 10:52 PM ---------- Previous post was at 10:43 PM ---------- The below would be good in very large unit actions - if your pc's Hamsters don't die from exhaustion first. {{_x doMove getpos player}forEach units leader group _x}forEach list wlist [name of group, 1st waypoint] set waypoint to marker named MarkerOne Share this post Link to post Share on other sites