8,018
edits
Paradox-01 (talk | contribs) m (Cheat codes (notes), Character scaling v2) |
Paradox-01 (talk | contribs) |
||
Line 91: | Line 91: | ||
[[Image:UnrealOni_cheat_codes_minime_behemoth_godzilla.png|right|thumb|Behemoth function with scaling parameter (recycled for other ''character scalings'')]] | [[Image:UnrealOni_cheat_codes_minime_behemoth_godzilla.png|right|thumb|Behemoth function with scaling parameter (recycled for other ''character scalings'')]] | ||
This is basically one function with | This is basically one function with two free parameter, one for the scaling and one for the cheat name. | ||
The central property in this code is the '''Actor Scale 3D''' which we will set the scaling as following: | |||
* minime (0.5) | * minime (0.5) | ||
* behemoth (2) | * behemoth (2) | ||
* godzilla (4) | * godzilla (4) | ||
For | For '''toggling''' we need some checking on what is active. Booleans can work but with more different scaling more booleans are needed. | ||
Instead we use | Instead we use read the current "Actor Scale 3D" via "Get", break that vector to floats and compare the X one against of our new scaling float. | ||
If the input has the same value we will reset the scale to 1, bringing the character back to normal size. | |||
The second parameter for the cheat name is purely decorative, it is only for the status message. | |||
====Kangaroo==== | ====Kangaroo==== |
edits