CME4WHOIAM 0 Posted June 20, 2004 Share Posted June 20, 2004 Ok in the mission im scripting Your objective is to take a prisoner. I don't want a specific guy I want you can take any of the enemys prisoner if they give up. I know how to get a prisoner if certain people die or u get within a certain distacne but how will I do it if there will be a chance to take any enemy prisoner? Quote Link to post Share on other sites
Chavez 0 Posted June 20, 2004 Share Posted June 20, 2004 Never tried this but here is my 2 cents: Set up a loop that checks proximity for playerplatoon to any actor on enemy company As soon as the required parameters kicks in; redirect or cancel the loop (from within the loop itself. Before canceling, set the current enemy actor being looped to hostage or captive behavior. Then bump him and take him with you. Store his variable_actor_name (from the loop) to check if they manage to extract him at a later stage. If you wanna put in some fun, check if they outrun him by i.e. 10 meters after they have captured him. Then trigger a triggerplan for him that makes him try to escape (i.e. set a pathpoint at centre of map and make him run full speed to that one) Hope this helps Enjoy Quote Link to post Share on other sites
CME4WHOIAM 0 Posted June 21, 2004 Author Share Posted June 21, 2004 1 small problem i dont no how to do loops yet i read the thing about it but im still lost Quote Link to post Share on other sites
Chavez 0 Posted June 21, 2004 Share Posted June 21, 2004 Then that scripting is a lil above ure reach at the moment. Loops are explained well several places in this forum so just do a search to find out of it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.