You use the .usescript member to override an existing script or to set a script on an item which normally doesn't have one.
If you search an example you can take a look at the tinker traps or the secure containers which are normally in every script base.
If you place a trap on a container you set the usescript of the container to the script which handles what has to be done if someone double clicks that container. If the trap explodes or someone removes the trap you set the container.usescript := ""; and the container is handled normally again.
So that is not a bug, it's a feature
Author
Message
Yukiko
Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
Posted: Wed May 02, 2007 12:57 am Post subject:
Mr. Bubbles,
I am not sure exactly what you are referencing here. Are you referring to the entry in an itemdesc.cfg file for the 'use script'?
Author
Message
Tritan
Joined: 04 Feb 2006 Posts: 136 Location: Illinois, USA
Posted: Wed May 02, 2007 7:56 am Post subject:
mr bubbles wrote:
script is for the ai script on mobiles, usescript is the (doubleclick) script on items.
In the itemdesc.cfg file you define the script, not the use script, for what script will run when double clicked. .usescript <scriptname> is a text command that will override the script entry in the configuration file for the targetted item only.