This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
attribute_examples [2021/11/27 13:54] – hneg | attribute_examples [2021/11/28 07:49] (current) – hneg | ||
---|---|---|---|
Line 6: | Line 6: | ||
* Expand the Emitter 3Ditor section and check the //Use object as emitter// box. | * Expand the Emitter 3Ditor section and check the //Use object as emitter// box. | ||
* Select emitter count 4. | * Select emitter count 4. | ||
- | * For the first emitter select Emitter type // | + | * For the first emitter select Emitter type **// |
- | * For the second emitter select Emitter type // | + | * For the second emitter select Emitter type **// |
- | * For the third emitter select Emitter type // | + | * For the third emitter select Emitter type **// |
- | * For the fourth emitter select Emitter type // | + | * For the fourth emitter select Emitter type **// |
- | * Press //OK//. | + | * Press **//OK//**. |
* Then from the Eden editor’s Intel change the time so that it is dark. | * Then from the Eden editor’s Intel change the time so that it is dark. | ||
Now you should see the lights glow on the entity on those selected positions, something like this: | Now you should see the lights glow on the entity on those selected positions, something like this: | ||
Line 16: | Line 16: | ||
The emitter icons will appear on the center/feet of the entity model regardless of selected selections. If you drag the entity around you will see that the lights nicely follow along. | The emitter icons will appear on the center/feet of the entity model regardless of selected selections. If you drag the entity around you will see that the lights nicely follow along. | ||
- | Press Play Scenario and run around, the lights should follow the characters movements. | + | Press **//Play Scenario//** and run around, the lights should follow the characters movements. |
If you would export the scenario and play it it would do the same there. You can try that if you wish, save and export the scenario into SP scenarios, exit the editor and load the scenario from the scenarios list and play. | If you would export the scenario and play it it would do the same there. You can try that if you wish, save and export the scenario into SP scenarios, exit the editor and load the scenario from the scenarios list and play. | ||
The same process works for particles, of course. | The same process works for particles, of course. | ||
+ | |||
+ | If you check the **//Use default emitter set//** box you will see that most of the attributes get disabled and the **//Link model selections// | ||
+ | You can name the individual emitters in the set though. | ||
+ | It also overrides any previous emitter attributes you have selected for the entity. | ||
+ | |||
+ | So, on that same entity as we did the lights (or just pick another one) check the **//Use default emitter set//** box and select some selection from the selection list. You can see how all the disabled attributes will also have the same selected selection in their selection list. This is because of the **//Link model selections// | ||
+ | |||
+ | Press **//OK//**. | ||
+ | |||
+ | <WRAP info> | ||
+ | |||
+ | Now you should see the previously mentioned warning about damage. Just click Continue and the emitter icon set is created at the feet of the soldier and the particles appear on the selection on the soldier model. | ||
+ | {{ : | ||
+ | |||
+ | Press **//Play Scenario// | ||
+ | |||
+ | To remove the emitters open the attributes and un-check **//Use object as emitter((** and press **//OK//**, or you can delete them by selecting the emitter object (the "? in a box") and pressing ``DELETE`` on your keyboard. | ||
+ | The default set behaves as one single emitter in this regard as well, so the whole set gets deleted. | ||
+ | |||
+ | ===== Die out ===== | ||
+ | To see how the Die out attribute works, set some entity to use the default emitter set as described above. | ||
+ | Try some wreck, like a boat wreck for example as it allows you to see the effects nicely. | ||
+ | Then type into the **//Die out//** attribute field the number **//5//**. | ||
+ | |||
+ | Press **//OK//**. | ||
+ | |||
+ | You can place down a player entity to watch the flames with if you don’t have one placed already. | ||
+ | Press **//Play Scenario// | ||
+ | |||
+ | ===== Follow objectHide ===== | ||
+ | |||
+ | Using the same entity as with the above example, give the entity some name, like ??foo??. | ||
+ | Set the **//Die out//** back to 0, check the **//Follow objectHide// | ||
+ | If you didn’t place down player entity previously, do it now. | ||
+ | Press **//Play Scenario// | ||
+ | |||
+ | Open the debug console (``ESC``) and type in the Execute window: | ||
+ | < | ||
+ | [] spawn { | ||
+ | while {true} do { | ||
+ | sleep 3; | ||
+ | foo hideObject true; | ||
+ | sleep 3; | ||
+ | foo hideObject false; | ||
+ | }; | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | Press Local Exec (or ``ENTER``), then press ``ESC``. | ||
+ | You can observe the boat disappearing and appearing back in 3 second intervals and the effect going out and starting up again with the boats hiding status. | ||
+ | |||
+ | So, for example when dynamic simulation hides the entity the particles also disappear, or if you hide the entity for any reason during your scenario, so no need to worry about that. | ||
+ | <WRAP important> | ||
+ | |||
+ | ===== Using a trigger ===== | ||
+ | In addition to **//Follow objectHide// | ||
+ | |||
+ | All you need to do is sync a trigger with the emitter (__not the entity!__) and the emitters will start emitting when that trigger is activated and stop emitting when it’s deactivated. | ||
+ | <WRAP important> | ||
+ | This sync is done by selecting the emitter you want to sync with the trigger, then hovering over the trigger (so that it " | ||
+ | <WRAP important> | ||
+ | |||
+ | In case of emitter sets such as the default emitter set used in these examples you only need to select one of the emitters in the set and sync that with the trigger using ``SHIFT + ALT + S``. | ||
+ | |||
+ | ==== Some examples ==== | ||
+ | === Simple === | ||
+ | Place a player entity. | ||
+ | Then place for example two BMP2 wrecks side by side with some space in between them and set them to emit **// | ||
+ | |||
+ | Place a 10x10x10 trigger about halfway between the two wrecks, then select the first wreck’s emitter, hover over the trigger and press ``SHIFT + ALT + S``. Then do the same for the other wreck’s emitter. | ||
+ | The trigger’s visible name (text) changes to indicate it is now an activator for the emitters. You can not change this text, it’s "hard coded" | ||
+ | {{ : | ||
+ | Set player as trigger owner (and make sure play is out of the trigger’s area). | ||
+ | {{ : | ||
+ | Press **//Play Scenario// | ||
+ | As you can see, wrecks don’t emit anything. | ||
+ | Start walking between the wrecks and as you trigger the trigger both wrecks start emitting. Yay. | ||
+ | |||
+ | Return to Eden. | ||
+ | In the trigger attributes check the **// | ||
+ | Press **//Play Scenario// | ||
+ | |||
+ | As previously, walk between the wrecks, emitters start emitting when you enter the trigger but now they also stop emitting when you exit the trigger. You can walk in and out of the trigger as many times as you like to see this effect. | ||
+ | |||
+ | === A bit more complex(ish) === | ||
+ | Remove the BMP wrecks and the trigger. | ||
+ | Make sure the player entity has handgrenades. | ||
+ | |||
+ | Place for example an empty Hunter. | ||
+ | In it’s attributes write on the init field: | ||
+ | < | ||
+ | |||
+ | Then set it to emit two particle emitters, first one’s class to **// | ||
+ | |||
+ | Then place a trigger (size doesn’t matter). | ||
+ | In it’s condition field write: | ||
+ | < | ||
+ | Press **//OK//** and ``SHIFT + ALT + S`` the emitter with the trigger. | ||
+ | {{ : | ||
+ | Press **//Play Scenario// | ||
+ | |||
+ | Another one in the same vein, silly Twin Peaks-esque, | ||
+ | Remove the hunter and the trigger. Place down some man class entity that doesn’t have a weapon as target for you. | ||
+ | |||
+ | In that entity’s attributes set it’s name to //nmeloon// and set it to emit 1 emitter. | ||
+ | Set the emitter to emit class // | ||
+ | Press **//OK//**. | ||
+ | You can see how the entity is all hazy now. | ||
+ | |||
+ | Place a trigger, in it’s condition field write: | ||
+ | < | ||
+ | Set it’s timeout to min 1, mid 2, max 3. | ||
+ | ``SHIFT + ALT + S`` the emitter with it. | ||
+ | {{ : | ||
+ | Press **//Play Scenario// | ||
+ | It drops dead and starts refracting. | ||
+ | |||
+ | === Let’s do one more === | ||
+ | Remove the previous example stuff except the player entity. | ||
+ | |||
+ | Place down a metal barrel (not burning one). | ||
+ | In its init write: | ||
+ | < | ||
+ | |||
+ | Set it to emit three particle emitters; | ||
+ | Set the third to emit // | ||
+ | |||
+ | This makes the emitter die fast enough to spurt out only a short burst of flames (otherwise it will loop like in the editor). | ||
+ | |||
+ | By this point you probably think "well this sucks, can’t see anything now because of the particles." | ||
+ | No need to worry, pressing ``SHIFT + ALT + D`` disables all the emitters in the scenario in the editor. They still emit normally when previewing but will not emit in the editor until you press ``SHIFT + ALT+ D`` again. | ||
+ | With ``CTRL + ALT + D`` you can disable/ | ||
+ | |||
+ | Anyways, then place two men next to the barrel and set both to emit the default emitter set on selection //spine3//. | ||
+ | (Note that unarmored men like Competitor die faster). | ||
+ | |||
+ | Place down a trigger and sync all the emitters with it, in the trigger’s init field write: | ||
+ | < | ||
+ | {{ : | ||
+ | **//Play Scenario// |