User Tools

Site Tools


4rpl:commands:setmversecreatesunitghost

This is an old revision of the document!


Index
MVerse

:!: Available in version 1.9 and later.

SetMVerseCreatesUnitGhost

SetMVerseCreatesUnitGhost(<-unit <-createsMVerseGhost)

Description

Specifies if a custom unit will create an mverse ghost. An mverse ghost is the colored representation of a unit that is seen by other mverse players. If a ghost is created it will match the general look and position/rotation of the custom unit. The ghost can be enabled/disabled at run time and will appear and disappear on clients. This call only works for custom units. By default, custom units create ghosts.

It is suggested to use this call inside :GameLoaded so that it is called properly for mverse clients. :Awake or :Once will work for host but not clients.

Examples

:GameLoaded
    SetMVerseCreatesUnitGhost(self false)

Index

4rpl/commands/setmversecreatesunitghost.1625572006.txt.gz · Last modified: 2021/07/06 07:46 by Grabz