proto3 initial commit
This commit is contained in:
9
proto3/godot/ai/has_weapon.gd
Normal file
9
proto3/godot/ai/has_weapon.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
extends BTCondition
|
||||
class_name BTHasWeapon
|
||||
|
||||
func tick(tick: Tick) -> int:
|
||||
assert(tick.actor.has_meta("weapon"))
|
||||
var objmeta = tick.actor.get_meta("weapon")
|
||||
if objmeta:
|
||||
return OK
|
||||
return FAILED
|
||||
Reference in New Issue
Block a user