GSC reference › Built-in
AddInfluencer()
Built-in (engine)
Server
Adds a new influencer of <name> at <origin>
Signature
AddInfluencer(<name>, <origin>, <team mask>)
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Required | valid spawn influencer preset name. |
| origin | Required | center point of the influencer |
| team mask | Required | teams that this influencer will affect |
Example (from Treyarch's docs)
influencer_id = AddInfluencer( name, origin, allies_mask )
Real uses in BO3's scripts
Called 3 times in the decompiled scripts. A few, zombies first:
- scripts/zm/gametypes/_spawning.gsc, line 222
self.influencers[name] = addinfluencer(name, origin, team_mask); - scripts/mp/gametypes/_spawning.gsc, line 255
self.influencers[name] = addinfluencer(name, origin, team_mask); - scripts/cp/gametypes/_spawning.gsc, line 261
self.influencers[name] = addinfluencer(name, origin, team_mask);
Related built-ins
- EnableInfluencer()Enables or disables the given influencer
- SetInfluencerTeamMask()Sets the team mask for the given influencer
- RemoveInfluencer()Removes the given influencer
- AddEntityInfluencer()Adds a new influencer of <name> attached to <entity>
- GetInfluencerPreset()Adds a new influencer of <name> at <origin> and <angles>
- SetInfluencerTimeout()Sets the timeout for the influencer in seconds from current time
- AddOrientedInfluencer()Adds a new influencer of <name> at <origin> and <angles>
- GetInfluencerTimeoutRemaining()Gets the remaining influencer timeout in milliseconds.
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).