GSC reference › Built-in
GenerateScriptEvent()
Built-in (engine)
Server
Called on: actor
Creates a script event at the actor's origin, with default radius
Signature
<actor> GenerateScriptEvent([origin], [radius], [name])
Called on an entity: actor GenerateScriptEvent(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| origin | Optional | Source position of the event. |
| radius | Optional | Size of the event. |
| name | Optional | Name of the event. |
Example (from Treyarch's docs)
self GenerateScriptEvent()
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/cp/cybercom/_cybercom.gsc, line 133
self generatescriptevent();
Related built-ins
- SetUkkoScriptIndex()Set ukko index from script.
- AnimScripted()Runs an animscript on an entity.
- LUINotifyEvent()Sends a notify from script to LUI.
- StopAnimScripted()Halts animscript on this entity.
- SetClientScriptMainMenu()Sets g_scriptMainMenu dvar only on this client
- IsPlayingAnimScripted()Returns true if the entity is playing in scripted animation.
- IsInScriptedState()Checks if actor is in a scripted state (animscripted, custom, negotiation)
- SendKillstreakDamageEvent()Send a killstreak damage event to the client
- LUINotifyEventToSpectators()Sends a notify from script to LUI.
- CameraForceDisableScriptCam()Disable the script cam from client script.
- EndExtraCamAnimScripted()Ends the extracam camera script on a player.
- GetCurrentEventTypeName()Gets the type string name from the current event.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).