GSC reference › Built-in
SetTargetedEntityEndTime()
Built-in (engine)
Server
Player Called on: player
Set targeted entity end time, for use on the client side in the UI.
Signature
<player> SetTargetedEntityEndTime(<weapon>, <endtime>)
Called on an entity: player SetTargetedEntityEndTime(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| weapon | Required | The weapon (player should have this weapon) |
| endtime | Required | The end time of the targeted entity |
Example (from Treyarch's docs)
self SetTargetedEntityEndTime( weapon, 0.0 )
Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/shared/weapons/_heatseekingmissile.gsc, line 1023
self settargetedentityendtime(weapon, killstreakendtime); - scripts/shared/weapons/_heatseekingmissile.gsc, line 1030
self settargetedentityendtime(weapon, target.killstreakendtime); - scripts/shared/weapons/_heatseekingmissile.gsc, line 1036
self settargetedentityendtime(weapon, target.parentstruct.killstreakendtime); - scripts/shared/weapons/_heatseekingmissile.gsc, line 1040
self settargetedentityendtime(weapon, 0);
Related built-ins
- SetVehicleWeaponWaitEndTime()Sets the vehicle weapon wait end time.
- SetVehicleDrivableEndTime()Sets the vehicle drivable end time.
- SetGameEndTime()Sets the time the current match will end
- GetCharacterBodyRenderOptions()Gets the body render options for this player
- SetVehicleFocusEntity()Sets the focus entity for a player driven vehicle (currently only supported by helicopters).
- GetPlayerGenderType()Returns the gender string of the player
- SetTargetedMissilesRemaining()Set targeted entity missiles remaining, for use on the client side in the UI.
- SetClientPlayerSprintTime()Sets player_sprintTime dvar only on this client
- SetEnterTime()Sets the player's session enter time
- SetPlayerRenderOptions()Sets the player render options
- ForceOffHandEnd()Force the player to not use offhand weapon
- NextPlayerRenderOption()Set the next player render option
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).