GSC reference › Built-in
AddEntityInfluencer()
Built-in (engine)
Server
Adds a new influencer of <name> attached to <entity>
Signature
AddEntityInfluencer(<name>, <entity>, <team mask>)
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Required | valid spawn influencer preset name. |
| entity | Required | Attached to entity. Goes away when entity is deleted. Unless a time is set. |
| team mask | Required | teams that this influencer will affect |
Example (from Treyarch's docs)
influencer_id = AddEntityInfluencer( name, player, 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 270
self.influencers[name] = addentityinfluencer(name, self, team_mask); - scripts/mp/gametypes/_spawning.gsc, line 303
self.influencers[name] = addentityinfluencer(name, self, team_mask); - scripts/cp/gametypes/_spawning.gsc, line 309
self.influencers[name] = addentityinfluencer(name, self, team_mask);
Related built-ins
- GetEntityNumber()Get the entity number of the entity
- PlayRumbleOnEntity()Plays a rumble on the given entity.
- ClearTargetEntity()Clears the current target for this vehicle or turret.
- MaySpawnEntity()
- IsEntity()Checks whether given variable is of type entity.
- EnableInfluencer()Enables or disables the given influencer
- ClearEntityTarget()Clears an AI's entity target.
- LookAtEntity()Set this actor to look at the specified entity.
- SetEntityTarget()Set an entity as the AI's target.
- SetTargetEntity()Sets the target of this turret
- SetInfluencerTeamMask()Sets the team mask for the given influencer
- Objective_OnEntity()Sets the objective to get its position from an entity.
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).