Resource:Handling Editor: Difference between revisions
No edit summary |
(That's better :D) |
||
Line 1: | Line 1: | ||
{{Resource page}} | {{Resource page}} | ||
The | The MTA Ingame Handling Editor (shortly hedit or ahe) is an open source resource being developed for MTA 1.1. It currently won't work on the 1.1 Nightly releases, you need the latest Custom-Handling nightly in order to use this tool. | ||
You can see and download the latest version on the [http://code.google.com/p/hedit/ Google Code project]. | |||
== | ==Exported Functions== | ||
== | ===importVehicleHandling=== | ||
<section name="Server and Client" class="both" show="true"> | <section name="Server and Client" class="both" show="true"> | ||
This function is used to import the handling set of all vehicles with the specified model ID. | |||
=== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool | bool importVehicleHandling( element theVehicle, table data ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''' | ==Required Arguments== | ||
'''data''': | *'''theVehicle''': The vehicle you wish to set the handling of | ||
*'''data''': A table containing the handling data you want to set | |||
==Returns== | |||
Returns '''true''' if the handling was set successfully, '''false''' otherwise. | Returns '''true''' if the handling was set successfully, '''false''' otherwise. | ||
</section> | |||
==Exported Events== | |||
===onVehicleHandlingChange=== | |||
<section name="Server" class="server" show="true"> | |||
This event is called when you change some handling from any vehicle. | |||
==Parameters== | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string hProperty, var oldValue, var newValue | |||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''hProperty:''' The handling property which has been changed | |||
*'''oldValue:''' The old value of the changed property | |||
*'''newValue:''' The new value of the changed property | |||
==Source== | |||
The [[event system#Event source|source]] of this event is the vehicle element that got changed. | |||
</section> | |||
===onClientVehicleHandlingChange=== | |||
< | <section name="Client" class="client" show="true"> | ||
This event is called when you change some handling from any vehicle. | |||
==Parameters== | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string hProperty, var oldValue, var newValue | |||
</syntaxhighlight> | |||
*'''hProperty:''' The handling property which has been changed | |||
*'''oldValue:''' The old value of the changed property | |||
*'''newValue:''' The new value of the changed property | |||
==Source== | |||
The [[event system#Event source|source]] of this event is the vehicle element that got changed. | |||
</section> | |||
==See also== | |||
[http://www.code.google.com/p/hedit/ Google Code Project] See and get the latest changes here.<br> | |||
[http://forum.mtasa.com/viewtopic.php?f=108&t=30494 Official Forum Topic] The place for discussing this project. |
Revision as of 19:49, 11 May 2011
The MTA Ingame Handling Editor (shortly hedit or ahe) is an open source resource being developed for MTA 1.1. It currently won't work on the 1.1 Nightly releases, you need the latest Custom-Handling nightly in order to use this tool. You can see and download the latest version on the Google Code project.
Exported Functions
importVehicleHandling
This function is used to import the handling set of all vehicles with the specified model ID.
Syntax
bool importVehicleHandling( element theVehicle, table data )
Required Arguments
- theVehicle: The vehicle you wish to set the handling of
- data: A table containing the handling data you want to set
Returns
Returns true if the handling was set successfully, false otherwise.
Exported Events
onVehicleHandlingChange
This event is called when you change some handling from any vehicle.
Parameters
string hProperty, var oldValue, var newValue
- hProperty: The handling property which has been changed
- oldValue: The old value of the changed property
- newValue: The new value of the changed property
Source
The source of this event is the vehicle element that got changed.
onClientVehicleHandlingChange
This event is called when you change some handling from any vehicle.
Parameters
string hProperty, var oldValue, var newValue
- hProperty: The handling property which has been changed
- oldValue: The old value of the changed property
- newValue: The new value of the changed property
Source
The source of this event is the vehicle element that got changed.
See also
Google Code Project See and get the latest changes here.
Official Forum Topic The place for discussing this project.