rssDrag and Drop (draganddrop)
Category: | script |
---|---|
Author(s): | Ace_Gambit |
Downloads: | 1395 |
Rate: | You need to be logged in to vote |
Rating: | 3.7 (22 Votes) |
Description:
Drag and Drop 1.1 resource for MTA:SA DM DP2 by Ace_Gambit
This resource allows you to drag and drop MTA elements almost like in the MTA Race editor.
You can run this resource as part of your own script or stand-alone.
Features:
- Old style drag and dropping of MTA elements
- Supports objects and vehicles (possibly even pickups but hasn't been tested)
- Free movement when cursor is hidden
- Rotate elements over x and z-axis
Version 1.1:
- Added ability to rotate elements!
- Added world rotation of selected element (toggle with F2)
- Fixed README (missing controls and typo's)
Usage:
Drop the archive in your resource folder and start it. The original distribution is designed to run as stand-alone. This means that you can run it parallel to your favourite map editor resource. In stand-alone modus players are automatically registered as editors.
In order to run this resource as part of your own script you must edit the meta.xml. Change the "runstandalone" setting (meta.xml) to "false". The resource will not register newly joined players as editors anymore. You will have to do it in your script instead using one of the following export functions.
Exports:
- regPlayerAsEditor(element player)
- unregPlayerAsEditor
Controls:
- F1 toggles drag and drop mode on (requires the cursor to be visible!) or off *
- F2 toggles world position/rotation of the selected element
- Mouse1 selects an MTA element (press Mouse1 again to drop the MTA element)
- LSHIFT (hold) snaps the selected MTA element to the world or any object beneath
- F3 toggles rotation controls on or off
Rotation: **
- Mouse2 (hold) + Arrow left/right smoothly rotates the element over the x-axis
- Mouse2 (hold) + Arrow down/up smoothly rotates the element over the z-axis
- Scroll up/down fast rotation over the z-axis
- LCTRL (hold) + Scroll up/down fast rotation over the x-axis
- SPACE resets the element to its default rotation
The dragging is pretty straight forward. Just move your mouse to anywhere on the screen.
Free movement:
This resource supports dragging without the cursor being visible. This comes in handy if you want to move the object high into the air with a jetpack or something. As long as drag and drop mode is enabled you can toggle the cursor on and off. It has to be visible when you want to select a new MTA element though.
Note:
When you select a vehicle all passengers are thrown out. This is to prevent bugs when the client script is temporary disabling the element's collision.
Also be aware that other players can not select the same MTA element or see an element being moved by a remote player. The MTA element is synchronized again when the remote player drops it.
* When drag and drop is enabled a yellow corona and red arrow appear.
** In order to prevent interference with running resources the rotation controls are toggable (F3).
Credits to the MTA team...
(more)
This resource allows you to drag and drop MTA elements almost like in the MTA Race editor.
You can run this resource as part of your own script or stand-alone.
Features:
- Old style drag and dropping of MTA elements
- Supports objects and vehicles (possibly even pickups but hasn't been tested)
- Free movement when cursor is hidden
- Rotate elements over x and z-axis
Version 1.1:
- Added ability to rotate elements!
- Added world rotation of selected element (toggle with F2)
- Fixed README (missing controls and typo's)
Usage:
Drop the archive in your resource folder and start it. The original distribution is designed to run as stand-alone. This means that you can run it parallel to your favourite map editor resource. In stand-alone modus players are automatically registered as editors.
In order to run this resource as part of your own script you must edit the meta.xml. Change the "runstandalone" setting (meta.xml) to "false". The resource will not register newly joined players as editors anymore. You will have to do it in your script instead using one of the following export functions.
Exports:
- regPlayerAsEditor(element player)
- unregPlayerAsEditor
Controls:
- F1 toggles drag and drop mode on (requires the cursor to be visible!) or off *
- F2 toggles world position/rotation of the selected element
- Mouse1 selects an MTA element (press Mouse1 again to drop the MTA element)
- LSHIFT (hold) snaps the selected MTA element to the world or any object beneath
- F3 toggles rotation controls on or off
Rotation: **
- Mouse2 (hold) + Arrow left/right smoothly rotates the element over the x-axis
- Mouse2 (hold) + Arrow down/up smoothly rotates the element over the z-axis
- Scroll up/down fast rotation over the z-axis
- LCTRL (hold) + Scroll up/down fast rotation over the x-axis
- SPACE resets the element to its default rotation
The dragging is pretty straight forward. Just move your mouse to anywhere on the screen.
Free movement:
This resource supports dragging without the cursor being visible. This comes in handy if you want to move the object high into the air with a jetpack or something. As long as drag and drop mode is enabled you can toggle the cursor on and off. It has to be visible when you want to select a new MTA element though.
Note:
When you select a vehicle all passengers are thrown out. This is to prevent bugs when the client script is temporary disabling the element's collision.
Also be aware that other players can not select the same MTA element or see an element being moved by a remote player. The MTA element is synchronized again when the remote player drops it.
* When drag and drop is enabled a yellow corona and red arrow appear.
** In order to prevent interference with running resources the rotation controls are toggable (F3).
Credits to the MTA team...
(more)