User Tools

Site Tools


4rpl:commands:setmversecreatesunitghost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:setmversecreatesunitghost [2021/06/15 01:20] – [Description] Typo fix durikkan4rpl:commands:setmversecreatesunitghost [2024/01/16 15:41] (current) Grabz
Line 10: Line 10:
 ===== Description ===== ===== 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. 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.
 +
 +For custom units that are pre-placed in the map, it is suggested to use this call inside [[func_gameloaded|:GameLoaded]] so that it is called properly for mverse clients after they download the map from the host. [[func_awake|:Awake]] or [[func_once|:Once]] will work for pre-placed units on the host player,  but not client players.
  
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
-SetMVerseCreatesUnitGhost(self false)+:GameLoaded 
 +    SetMVerseCreatesUnitGhost(self false)
 </code> </code>
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/setmversecreatesunitghost.txt · Last modified: 2024/01/16 15:41 by Grabz