Garry's Mod Wiki

Entity:GibBreakServer

Entity:GibBreakServer( Vector force )

Description

Causes the entity to break into its current models gibs, if it has any.

You must call Entity:PrecacheGibs on the entity before using this function, or it will not create any gibs.

The gibs will be spawned on the server and be synchronized with all clients.

Note, that this function will not remove or hide the entity it is called on.

This function is affected by props_break_max_pieces_perframe, props_break_max_pieces and breakable_multiplayer (must be set to 0, which also would make all prop gibs spawn serverside) console variables.

Large numbers of serverside gibs will cause lag.

You can avoid this cost by spawning the gibs on the client using Entity:GibBreakClient

Despite existing on client, it doesn't actually do anything on client.

Arguments

1 Vector force
The force to apply to the created gibs

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 4
Generate Html 6
SaveChanges (1) 10
Render Body 0
Render Sidebar 13