Jump to content
Sign in to follow this  
Chomps

Requests for scripting commands

Recommended Posts

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.  confused.gif

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. biggrin.gif

Any other requests?

Share this post


Link to post
Share on other sites

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. mad.gif

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. biggrin.gif

Share this post


Link to post
Share on other sites

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

</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. biggrin.gif<span id='postcolor'>

armed is already there through "canFire" and "weapons" commands.

You mean selectedWeapon or activeWeapon? smile.gif

Share this post


Link to post
Share on other sites

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

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

</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?  smile.gif<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

</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. smile.gif

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  

×