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
]
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.
Last edited by gametechish on April 1st, 2013, 6:15 am, edited 1 time in total.
Thank you it now works some one should update the wiki but do Dragons automatically fly or do they need a script if so can someone help me out with this
You simply could "fake" flying by increasing the Z value of the model. This can be either done by using a 3D modeling program, such as Blender, or by adding to the cfg of the dragon model (I think it is located in packages/models/rpg/) something like this: