查看“LlEvade”的源代码
←
LlEvade
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llEvade( key target, list options ); |参数= 参数:key target – group, avatar or object UUID to evade list options – No options currently available |返回值= 返回值:Characters will (roughly) try to hide from their pursuers if there is a good hiding spot along their fleeing path. Hiding means no direct line of sight from the head of the character (center of the top of its physics bounding box) to the head of its pursuer and no direct path between the two on the navmesh. |注意事项=Must use [[llCreateCharacter]] or script will not compile. If the target is an object, it must be unlinked or be the root prim of a linkset. |示例= 示例1 <pre> vector start_position; default { on_rez(integer start_param) { llResetScript(); } state_entry() { llDeleteCharacter(); llCreateCharacter([CHARACTER_MAX_SPEED, 25, CHARACTER_DESIRED_SPEED, 15.0]); start_position = llGetPos(); llWanderWithin(start_position, <10.0, 10.0, 2.0>, [] ); } touch_start(integer num_detected) { llEvade(llDetectedKey(0), []); llSetTimerEvent(20.0); } timer() { // do not keep running away... llSetTimerEvent(0.0); llWanderWithin(start_position, <10.0, 10.0, 2.0>, [] ); } } </pre> |相关函数= [[llCreateCharacter]] [[llDeleteCharacter]] [[llEvade]] [[llExecCharacterCmd]] [[llGetClosestNavPoint]] [[llFleeFrom]] [[llNavigateTo]] [[llPatrolPoints]] [[llPursue]] [[llUpdateCharacter]] [[llWanderWithin]] |相关事件= [[path_update]] }}
该页面使用的模板:
模板:LSL Header
(
查看源代码
)
模板:LSLC
(
查看源代码
)
模板:LSLGC
(
查看源代码
)
模板:Multi-lang
(
查看源代码
)
模板:函数详情
(
查看源代码
)
返回至
LlEvade
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
网站首页
知识百科
编辑帮助
最近更改
工具
链入页面
相关更改
特殊页面
页面信息