Chomps 0 Posted November 26, 2002 One of the nice things that comes with each patch is a neat new package of greatly appreciated scripting commands. Â Thought I would start up a thread of requests for feasible scripting commands for future patches. Â I hope this has not been posted before. Â The commands for velocity are great! Â Why stop there? How about: angPos and setAngPos - get and set the orientation of an object, given in three parameter arrays, an angle, in degrees for yaw, pitch, and roll. angVelocity and setAngVelocity - get and set angular velocities, given as a three parameter array of velocities (degrees per second) for yaw, pitch, and roll, postive and negative determining the direction of rotation. A little unrelated: armed - returns either a boolean on whether or not the unit has a weapon in hand, or returns the name of the weapon that the unit has in hands, null if none. Â That command would make me very happy. Any other requests? Share this post Link to post Share on other sites
toadeater 0 Posted November 26, 2002 I want an equipment loadout editor addon, that's what! It's so much joy to add 1000 addmagazine and addweapon commands if you want to use anything other than the default loadout. On the Unit menu, have a button for Equipment, when you click on that, something like the Gear menu from the in-game map comes up. Just weapon/ammo names, doesn't need graphics. Oh, while I'm at it, another nice editor add-on would be a precise placement mode that shows the true location and scale of objects compared to terrain. Ok, now back to the scripting topic. Share this post Link to post Share on other sites
Kegetys 2 Posted November 26, 2002 Something like "getunitpos" would be nice, to determine if an unit is standing or crawling. Share this post Link to post Share on other sites
bn880 5 Posted November 26, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Chomps @ Nov. 25 2002,22:22)</td></tr><tr><td id="QUOTE">armed - returns either a boolean on whether or not the unit has a weapon in hand, or returns the name of the weapon that the unit has in hands, null if none. That command would make me very happy. <span id='postcolor'> armed is already there through "canFire" and "weapons" commands. You mean selectedWeapon or activeWeapon? Share this post Link to post Share on other sites
PiNs_Da_Smoka 0 Posted November 26, 2002 How about something like "SetWP". Where in you can actually make a WP, with its name and all. Here is a little syntax which would tickle me. unitname SetWP [getmarkerpos "marker",4] Which is pretty self-explanatory. Where 4 is the WP number, or the order they are in, i think you get it. That would be GREAT :-D Share this post Link to post Share on other sites
Balschoiw 0 Posted November 26, 2002 serverside command: disable radio targetting scripting: as setpos "up" and "down" are already in I´d like to have the kneeling position as well. Share this post Link to post Share on other sites
Chomps 0 Posted November 28, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (bn880 @ Nov. 26 2002,21:12)</td></tr><tr><td id="QUOTE">You mean selectedWeapon or activeWeapon? Â <span id='postcolor'> Yeah, I suppose that would be a much better term for it. Basically i want to know what weapon, if any, the player has in his hands, ready to fire. This would be great, for example, for a kind of secret agent mission where you can walk around without a problem with your gun holstered, but as soon as you take it out, people may react to you differently. Share this post Link to post Share on other sites
Chomps 0 Posted November 28, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Balschoiw @ Nov. 26 2002,22:27)</td></tr><tr><td id="QUOTE">scripting: as setpos "up" and "down" are already in I´d like to have the kneeling position as well.<span id='postcolor'> Yes, I forgot to mention that. It would be great to use this setUnitPos "crouch" or something similar to ensure they keep that position if they are placed in a spot with some cover (to replace the now-needed three scripting commands which only work until the guy decides to stand up). I think the main problem may be with the AI, as they do not seem to recognize crouching as a position. If you are the leader of a formation and you crouch, they treat you as if you are standing. If something could be changed so they all crouch when you crouch, that would be swell. Share this post Link to post Share on other sites