GSC reference › Built-in
BeamLaunch()
Built-in (engine)
Client
Gfx
Launch this beam and return the internal handle.
Signature
BeamLaunch(<localClientNum>, <entity from>, <tag from>, <entity to>, <tag to>, <beam>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | Local client on which to play the beam |
| entity from | Required | The originating entity |
| tag from | Required | The tag on the originating entity to start from |
| entity to | Required | The target entity |
| tag to | Required | The target tag |
| beam | Required | The beam |
Example (from Treyarch's docs)
handle = BeamLaunch(0, launcher, launcherTag, target, targetTag, beam)
Real uses in BO3's scripts
Called 5 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_electroball_grenade.csc, line 133
var_d72ccbc = beamlaunch(localclientnum, electroball, "tag_origin", ai_zombie, tag, "electric_arc_beam_electroball"); - scripts/zm/_zm_weap_gravityspikes.csc, line 362
self.e_sparky_beam = beamlaunch(localclientnum, mdl_gravity_trap, "tag_origin", ai_zombie, str_tag, "electric_arc_sm_tesla_beam_pap"); - scripts/shared/ai/mechz.csc, line 183
self.fire_beam_id = beamlaunch(localclientnum, self, "tag_flamethrower_fx", undefined, "none", "flamethrower_beam_3p_zm_mechz"); - scripts/shared/beam_shared.csc, line 40
s_beam.beam_id = beamlaunch(self.localclientnum, ent_1, str_tag1, ent_2, str_tag2, str_beam_type); - scripts/shared/end_game_taunts.csc, line 1505
self.beamfx = beamlaunch(self.localclientnum, self, "tag_flash", undefined, "none", beam);
Related built-ins
- LaunchRagdoll()Launch this ragdoll.
- PhysicsLaunch()Permanently turn this entity into a physics object with an intial force vector at the specified point.
- CreateDynEntAndLaunch()Creates and launches a dynent.
- LaunchVehicle()Launch this physics vehicle.
- Launch()Launch an object that interacts with the world, using an initial velocity.
- launchdynent()Launch a dynent
- StopFX()Stops a given fx.
- DeleteFX()Delete a spawned effect.
- SetUkkoScriptIndex()Set ukko index from script.
- SetFilterPassConstant()Sets the filter pass constant
- SetFXIgnorePause()Tells an effect whether or not to respect a paused world state.
- SetFilterPassEnabled()Sets the filter pass enabled or disabled
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).