This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
more_dts [2021/12/06 11:10] – [Die Out] hneg | more_dts [2021/12/06 12:08] (current) – ["Importing" Parameters] hneg | ||
---|---|---|---|
Line 222: | Line 222: | ||
NOTE that this will start a looping script for the emitter, and in an emitter set for each individual emitter.</ | NOTE that this will start a looping script for the emitter, and in an emitter set for each individual emitter.</ | ||
===== Follow objectHide ===== | ===== Follow objectHide ===== | ||
+ | This can be found under the [[ped_ui# | ||
- | ===== Diagnostics ===== | + | Does what it says on the tin, makes the selected emitter/ |
+ | Meaning if the object is hidden with ??obj hideObject true?? in-game the emitter will also " | ||
+ | <WRAP alert> | ||
+ | Ie. if you have 50 emitters attached to one object there’s still only one spawned script. But still optional as it might raise a performance concern if forced on each object by default, if you have 50 objects with attached emitters it would mean 50 scripts... | ||
+ | The loop is " | ||
+ | <WRAP important> | ||
+ | |||
+ | Why a looping script? Because there is no eventhandler to detect if object is hidden or not.</ | ||
+ | <WRAP important> | ||
+ | ===== Diagnostics ===== | ||
+ | When running the [[url|diagnostic.exe]] of the game the particle related diagnostic switches are available in the [[ped_ui# | ||
+ | * **// | ||
+ | * **// | ||
===== Data Validation ===== | ===== Data Validation ===== | ||
+ | The parameter fields on the tool UI all except the menus have a data validation system " | ||
+ | When you insert some value into a parameter field the field and the data in it will turn briefly to yellow which indicates the data is being validated: | ||
+ | {{: | ||
+ | Once it validates it turns back to white. | ||
+ | <WRAP important> | ||
+ | If it doesn’t validate it turns red: | ||
+ | {{: | ||
+ | Also a notification is shown on the top of the screen which can vary: usually you will get " | ||
+ | When using some global variable that doesn' | ||
+ | |||
+ | The param field stays red for annoyingly long time to remind you what you just did and then turns back to white and fills the field with either its default data or last successfully validated data. | ||
+ | |||
+ | Some faulty data is so faulty that the game can't continue with it and a visible scripting error is shown and the validation for that field can break down (stays yellow or red). That I can't do anything about because there is no way to detect scripting errors, so you just have to be careful.. | ||
+ | <WRAP important> | ||
===== " | ===== " | ||
+ | As mentioned in the Export/ | ||
+ | |||
+ | Meaning that you can paste emitter parameters into the " | ||
+ | <WRAP important> | ||
+ | |||
+ | Obviously each parameter " | ||
+ | * parameters for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | * parameter for [[https:// | ||
+ | |||
+ | And for lights | ||
+ | * parameters for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | * parameter for [[https:// | ||
+ | * parameter for [[https:// | ||
+ | * parameter for [[https:// | ||
+ | * parameter for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | * parameter for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | * parameters for [[https:// | ||
+ | |||
+ | This works the same for both particle and light emitters. Let’s say you have something like this in your script: | ||
+ | < | ||
+ | [" | ||
+ | "", | ||
+ | " | ||
+ | 1, | ||
+ | 0.5, | ||
+ | [0, 0, 0], | ||
+ | [0, 0, 0], | ||
+ | 1, | ||
+ | 1.23, | ||
+ | 1, | ||
+ | 0.2, | ||
+ | [0.6, 1.8, 2.5], | ||
+ | [[0.5, 0.5, 0.5, 0.14],[0.6, 0.6, 0.6, 0.06],[0.7, 0.7, 0.7, 0.02],[0.8, 0.8, 0.8, 0.006], | ||
+ | [5], | ||
+ | 0.1, | ||
+ | 0.1, | ||
+ | "", | ||
+ | "", | ||
+ | "", | ||
+ | 0, | ||
+ | false, | ||
+ | 0, | ||
+ | [[0, 0, 0, 0]] | ||
+ | ]; | ||
+ | |||
+ | _p setParticleRandom [ | ||
+ | 0.2, | ||
+ | [0.08, 0.08, 0.08], | ||
+ | [0.3, 0.3, 0.3], | ||
+ | 20, | ||
+ | 0.15, | ||
+ | [0, 0, 0, 0], | ||
+ | 0, | ||
+ | 0, | ||
+ | 1, | ||
+ | 0 | ||
+ | ]; | ||
+ | |||
+ | _p setDropInterval 0.0035;</ | ||
+ | |||
+ | To " | ||
+ | There is already data because the placed emitter by default has some parameters. So wipe those off first (press the **// | ||
+ | <WRAP important> | ||
+ | Then copy paste the parameters only, as in the value after the scripting command (array or number), on their respective fields on the tool and once done press the **//Paste Params//** button. The " | ||
+ | In case of this example the " | ||
+ | {{: | ||
+ | |||
+ | It’s exactly the same method for lights, with the only exception of the export/ | ||
+ | <WRAP important> | ||
+ | - Change setLightBrightness into setLightIntensity and multiply the value with 3000 (brightness x 3000 = intensity) | ||
+ | - just paste the brightness value into the Intensity field and hold down ``CTRL`` while pressing the **// | ||
+ | </ |