GSC reference › Built-in
AttachShieldModel()
Built-in (engine)
Server
Called on: player
Attach a shield model to a player.
Signature
<player> AttachShieldModel(<modelname>, [tagname], [ignoreCollision])
Called on an entity: player AttachShieldModel(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| modelname | Required | The model name to attach (string). |
| tagname | Optional | The tag to attach the model to (string). |
| ignoreCollision | Optional | flag to ignore collision. Defaults to false (integer). |
Example (from Treyarch's docs)
self AttachShieldModel( "weapon_riot_shield", "tag_weapon_left" )
Real uses in BO3's scripts
Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.
Related built-ins
- DetachShieldModel()Detaches an attached shield model from a player.
- SetModel()Set the model for the entity
- SetUIModelValue()Sets a UIModel from the model being passed in.
- CreateUIModel()Creates and returns a UIModel from a parent model.
- GetUIModel()Returns a UIModel from the parent model passed in and the name of the model to retrieve.
- ForceStreamXModel()Forces the streamer to load model and texture LODs for a model even if it isn't yet visible.
- GetUIModelForController()Returns the UIModel from the controller root.
- HideMiscModels()Hide all misc models with this targetname
- PlayViewmodelFX()
- SetControllerUIModelValue()Sets a data value for a given lui menu, the data name has to be precached and the value as well, if its a string.
- FindStaticModelIndexArray()Returns an array indices of a static model whose name matches the passed in string
- HideStaticModel()Hide a static model
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).