UnrealOni/Documentation: Difference between revisions

m
m (Cheat codes (notes), Character scaling v2)
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 one free parameter for the scaling.
This is basically one function with two free parameter, one for the scaling and one for the cheat name.
 
The central node in this is the "Set Actor Scale 3D".


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 accurate toggling we would need some additional code though but for now it works.
For '''toggling''' we need some checking on what is active. Booleans can work but with more different scaling more booleans are needed.
<!--
v2
 
Of better toggling we need some checking on what is active. Booleans can work but with more different scalings more booleans are needed.


Instead we use a float to remember the active scale. If the input has the same value we will reset the scale to 1, bringing the character back to normal size.
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.


The second parameter is purely decorative, it is only for the status message.-->
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====
8,018

edits