Alekx Posted March 5, 2019 Share Posted March 5, 2019 (edited) Im a beginner when it comes to scripts. I am trying to make a script in which an actor is passive, walking around, when the player does the actor damage, the actor responds agressively, but I want to make it so that the actor´s punches decrease a lot of the players health. I successfully made the actor agressive when provoked, but I can´t seem to find a way to make his punches deadly, seems to me that I have to put a conditional within a conditional (I think) how would I do that? any help appreciated Edited March 5, 2019 by Alekx Link to comment Share on other sites More sharing options...
ZAZ Posted March 6, 2019 Share Posted March 6, 2019 you need a condition that checks if player recieved damge by another actor if 051A: actor $PLAYER_ACTOR damaged_by_actor 1@ then 0321: AS_actor $PLAYER_ACTOR die_headshotted end CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Alekx Posted March 10, 2019 Author Share Posted March 10, 2019 On 3/6/2019 at 12:15 PM, ZAZ said: you need a condition that checks if player recieved damge by another actor if 051A: actor $PLAYER_ACTOR damaged_by_actor 1@ then 0321: AS_actor $PLAYER_ACTOR die_headshotted end thank you for your response! Also, is there an opcode for the actor to attack on sight or wait for a few seconds after the player has seen the actor, or would it be a combination of an attack opcode along with a "wait"? Link to comment Share on other sites More sharing options...
ZAZ Posted March 10, 2019 Share Posted March 10, 2019 00F2: actor $PLAYER_ACTOR near_actor 1@ radius 1.5 1.5 0 09ED: actor 1@ is_within_field_of_view_actor $PLAYER_ACTOR 0364: actor 1@ spotted_actor $PLAYER_ACTOR Sloth- 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Alekx Posted March 10, 2019 Author Share Posted March 10, 2019 38 minutes ago, ZAZ said: 00F2: actor $PLAYER_ACTOR near_actor 1@ radius 1.5 1.5 0 09ED: actor 1@ is_within_field_of_view_actor $PLAYER_ACTOR 0364: actor 1@ spotted_actor $PLAYER_ACTOR This will do, thanks a ton! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now