MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / ScriptPreInstanceSpawn

Function ScriptPreInstanceSpawn

src/game/server/point_template.cpp:456–476  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: This function is called after a spawner creates its child entity but before the keyvalues are injected. This gives us an opportunity to change any keyvalues before the entity is configured and spawned. In this case, we see if there is a VScript that wants to change anything about this entity. -------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CreateInstanceMethod · 0.85

Calls 5

ToHScriptFunction · 0.50
IsInitializedMethod · 0.45
ValueExistsMethod · 0.45
CallMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected