Enemy wont use item [SOLVED]
Posted: March 31st, 2013, 10:38 am
My enemy wont use any item I give him but he will chase me down. here I'll post the code.
Can someone please help soon I even use the RPG tutorial for the enemy just renamed the enemy. I can use the weapon if i kill him. I am really calling for help now. Please anyone.
Code: Select all
include scripts/1
r_script_signal talk [
if (!= (r_get_faction self) (r_get_faction actor)) [
r_action_clear self
r_action_attack self actor
]
]
r_script_signal hit [
if (!= (r_get_faction self) (r_get_faction actor)) [
r_action_clear self
r_action_attack self actor
]
]
r_script_signal update [
if (r_cansee self player) [
r_action_clear self
r_action_attack self player 1
]
]
r_script_signal collide [
if (!= (r_get_faction self) (r_get_faction actor)) [
r_action_clear self
r_action_attack self actor
]
]
r_script_signal spawn [
r_action_wander self 0 96 0
r_additem self 8 1
r_equip self 0
]