diamok Posted March 16, 2012 Share Posted March 16, 2012 So I'm pretty much a noob when it comes to scripting, and much better at learning from someone showing me how things work, rather than deciphering information presented on some wiki. I also didn't want to just come out and say could someone please give me the code for what I want to do? I'd rather at least try to learn before begging. :-) Here's my basic situation...I have multiple actors that use an ActorBase, but I need a script to run independent for each actor. The script needs to get the current GetAVPercentage, then based on that my if/elseif code will kick in and do all kinds of really cool stuff. What I guess I'm really having trouble with is, how do I call each actor independently? Hope this all makes sense and thanks in advance. Take care, Link to comment Share on other sites More sharing options...
fg109 Posted March 16, 2012 Share Posted March 16, 2012 If you put a script on the actor base, then each of your actors will have their own copy of the script. Say you put a script on NormalGuy01, and then you place two copies into the game, one with refID "Joe" and the other "Bob". Say your script has an OnHit event that kills the actor whenever they get hit by the player. Just because you hit Bob doesn't mean that Joe will die too. Link to comment Share on other sites More sharing options...
diamok Posted March 17, 2012 Author Share Posted March 17, 2012 I thought that might be the case, but thanks for the clarification fg. Take care, Link to comment Share on other sites More sharing options...
Recommended Posts