RDNWiki: DOWScar/Functions/AnimEnableInfantryOffset ...

RDN Wiki Home | Page Index | Recent Changes | Recently Commented | Users | Registration | Login:  Password:  

Anim_EnableInfantryOffset


Enables / disables the random infantry offset for all spawned and depsawned units in an sgroup.


Void Anim_EnableInfantryOffset(
SGroupID sgroup,
Boolean enable

)


Parameters


sgroup

the id of the sgroup to change the offset of.

enable

wether to disable or enable the offset.

Description


Enables / disables the random infantry offset for all spawned and depsawned units in an sgroup. Infantry offset is if a unit spreads out when automatically.

Remarks


You can use this function for the close up shots of your nis' to ensure that the units are in the same position that you place them in the ME. When you first disable the infantry offset, the units will snap to their original positions so it might be a good idea to hide this behaviour from the user. When re-enabling this offset, the units will stay in their current positions until they move (they will not snap, so it should be ok to call this while the unit is in view).

NOTE: If you disable this: MAKE SURE YOU RE-ENABLE IT, otherwise the units will not use random offsets ingame.

Example

Function Revisions


1.00: Initial function.

Source


LuaAnimator.cpp (Part of the internal game resources)

See Also


Categories: Anim

Referring pages: DOWScar/Functions/Index
DOWScar/Functions/IndexAnim

There are no files on this page. [Display files/form]
There is no comment on this page. [Display comments/form]