骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买霸主CDKEY 购买战帆CDKEY
查看: 2837|回复: 6

[功能与代码] 场景物模拟技能--混沌陨石(代码)

[复制链接]

34

主题

249

回帖

200

积分

见习骑士

Rank: 3

UID
2462463
第纳尔
1617
精华
0
互助
23
荣誉
0
贡献
0
魅力
85
注册时间
2015-3-3
鲜花(64) 鸡蛋(0)
发表于 2023-3-1 16:23:42 | 显示全部楼层
本帖最后由 战争傀儡阿格兰 于 2023-3-1 16:27 编辑

请教下,cast_ray 似乎是没有模型的吗


cast_ray                               = 1900   # (cast_ray, <destination>, <hit_position_register>, <ray_position_register>, [<ray_length_fixed_point>]), #Casts a ray of length [<ray_length_fixed_point>] starting from <ray_position_register> and stores the closest hit position into <hit_position_register> (fails if no hits). If the body hit is a prop instance, its id will be stored into <destination>

34

主题

249

回帖

200

积分

见习骑士

Rank: 3

UID
2462463
第纳尔
1617
精华
0
互助
23
荣誉
0
贡献
0
魅力
85
注册时间
2015-3-3
鲜花(64) 鸡蛋(0)
发表于 2023-3-1 16:40:36 | 显示全部楼层
vegetto 发表于 2023-3-1 16:31
重新组织语言,什么叫没有模型,判断碰撞,和模型外在样子无关,和模型的碰撞有关。碰撞可以是两个对象形 ...

就是这个代码,无法设定模型,用cast_ray  的时候,在游戏里是看不见这个ray的吗

34

主题

249

回帖

200

积分

见习骑士

Rank: 3

UID
2462463
第纳尔
1617
精华
0
互助
23
荣誉
0
贡献
0
魅力
85
注册时间
2015-3-3
鲜花(64) 鸡蛋(0)
发表于 2023-3-17 14:44:24 | 显示全部楼层
a1550887802 发表于 2023-1-5 13:01
其实除了用cast_ray和ground_level,还可以用用prop_instance_intersects_with_prop_instance,不过这个操 ...

求解prop_instance_intersects_with_prop_instance的用法,我看他不返回值啊,是想eq、lt一样的判断句吗?
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2026-1-2 21:47 , Processed in 0.088080 second(s), 18 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表