csj 0 Posted April 23, 2006 The radius setting is useless. Regardless of this setting the UserAction will only operate when one obj is in sight of the other. I need it to work at any radius (whole map would be nice) Can it be done? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class UserActions { class ThingOn { displayName="Thing On"; position="pos X"; radius= 8000; condition="(player != vehicle player)&&((getpos player select 2) >=40)"; statement="[(vehicle player)] exec ""Thingy.sqs"" "; }; }; Share this post Link to post Share on other sites
.kju 3245 Posted April 23, 2006 afaik useraction has a fixed radius of 15 or 25meters there is a workaround for this - some scripting solution. yet i dont have it available. scripting gurus should know anyway Share this post Link to post Share on other sites
csj 0 Posted April 23, 2006 Quote[/b] ]afaik useraction has a fixed radius of 15 or 25meters definitely works on line of sight - can get it working from about 300 to 400 meters as soon as obj comes into view. So by using knowsabout and/or reveal I should be able to workaround it as you say. thanx for help Share this post Link to post Share on other sites
UNN 0 Posted April 23, 2006 Quote[/b] ]The radius setting is useless.Regardless of this setting the UserAction will only operate when one obj is in sight of the other. I need it to work at any radius (whole map would be nice) Can it be done? Config user actions radius, is dependant on the View Distance. If you set the radius to 1800, but have a view distance of 800m. It will activate when you (The player) is within 800m. I say the Player, it will also activate when you access an AI's command menu, and the AI is in range. Or when you SwitchCamera to an AI in range. If you want, send me some details of your particular scenario? I will take a look. There are always ways around that limitation. Unless your trying to start a script from a map object. Then your stuck with the view distance limit. Share this post Link to post Share on other sites
csj 0 Posted April 23, 2006 The knowsabout and reveal worked, not real slick but it worked. There would be a better way though, ne that may be a little less taxing on PC to. Share this post Link to post Share on other sites
UNN 0 Posted April 24, 2006 Didn't you want the action available to the player, for the entire island? Quote[/b] ]There would be a better way though, ne that may be a little less taxing on PC to. Using the reveal command should not be that taxing. How often do you need to call it, isn't once when it's created or enough? Share this post Link to post Share on other sites
csj 0 Posted April 24, 2006 No it has to be called repeatly or Action will only flash up for a second in Action Menu until both obj's are in sight of each other. It's not very taxing but could be done better. Share this post Link to post Share on other sites
UNN 0 Posted April 24, 2006 You might be able to reduce the overheads by assigning the reveal command to the user actions condition, in your config: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">condition="Call {Player Reveal This; True}" It calls this every 0.4 seconds when the players in range. It might be enough to get a fixed user action? Would be handy if it did work, just removes the need for extra looping scripts then. But if your ok with a constant loop, why not make the action available to the player all the time instead? Regardles of how far away he is or LOS. Share this post Link to post Share on other sites