武装突袭 Wiki
Advertisement
Introduced with Operation Flashpoint version 1.04
  

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.04

描述

描述:
Check if lampost is on (shining). For working with CfgNonAIVehicles class "StreetLamp" only. Possible values are:
  • "ON"
  • "OFF"
  • "AUTO" (auto is only on during the night).
  • "ERROR"

基本句法

句法:
lightIsOn lamppost
参数:
lamppost: Object
返回值:
String

范例

范例1:
?lightIsOn nearestObject [player, "StreetLamp"] == "ON" :hint "nightime"
范例2:
_it = lightIsOn object 159582
范例3:
if (count allMissionObjects "StreetLamp" == 0) then { hint "Objects compatible with 'lightIsOn' are not found."; } else { hint "'lightIsOn' compatible objects are found!"; };

额外资讯

多人游戏:
-
也可以看看:
switchLight

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on August 4, 2006 - 10:56
hardrock
Notes from before the conversion: Use switchLight to turn lamposts on and off.

Bottom Section

Advertisement