lonesoldier 0 Posted June 30, 2003 How? I need it for my Resident Evil style mission. Ive got the player walking into the house, and need a civillian created behind the player, then walk up to him and strokefist him. How is this possible? Share this post Link to post Share on other sites
Bart.Jan 0 Posted June 30, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> "Civilian" createUnit [getMarkerPos "house" , zombies, "houseZombie=this"] ~1 houseZombie move getPos player @houseZombie distance player <2 houseZombie action ["strokefist"] These are the basics you need. Share this post Link to post Share on other sites
lonesoldier 0 Posted June 30, 2003 Cheers man! EDIT - No civillian appears at my specified marker... I dont get any errors either. Share this post Link to post Share on other sites
RED 0 Posted June 30, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"Civilian" createUnit [getMarkerPos "house" ,zobies, "houseZombie=this"] ~0.5 [houseZombie] join grpnull ~0.5 houseZombie move getPos player @houseZombie distance player <2 houseZombie action ["strokefist"] First make a unit on the map (out of site) and put this in its init field: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">zombies = group this RED Share this post Link to post Share on other sites
Skul 0 Posted June 30, 2003 To make the "zombie" move, would it not be <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">houseZombie domove getpos player and not <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">houseZombie move getpos player Or does it not really matter? [Gareth Gates must die] Share this post Link to post Share on other sites
raedor 8 Posted June 30, 2003 write <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"Civilian" createUnit [getMarkerPos "house" ,zombies, "houseZombie=this"] mind the M in zombies! @skul: i think in this case it doesnt really matter. Share this post Link to post Share on other sites
Bart.Jan 0 Posted June 30, 2003 write <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"Civilian" createUnit [getMarkerPos "house" ,zombies, "houseZombie=this"] mind the M in zombies! Thanks. Post updated. @LoneSoldier: you need marker "house" and then do it RED's way or place civilian on the map and into his init line put: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> zombies = group this; deletevehicle this Share this post Link to post Share on other sites
lonesoldier 0 Posted July 1, 2003 WOO!!! THANKS!!!!!!!!!!!!!!!!!!!!!!112!!!1@! Also! Is it possible to make them continually strokefist? (until i blow them away) Share this post Link to post Share on other sites
Bosun 0 Posted July 1, 2003 I'm not up on looping but; #loop housezombie action ["strokeFist"] ~2 goto "loop" put this in the trigger; [] exec "#loop" I tested it and unit does strokefist every two seconds, just change that number....hope this helps. You might be able to use something like this for your other question. Will be an interesting mission. Share this post Link to post Share on other sites
lonesoldier 0 Posted July 1, 2003 Cheers buddy! Â *EDIT* Ok, it works. Here's the script that makes the zombies look like theyre eating: #loop eat1 switchmove "PutDownToCombat" ?(eat1 knowsAbout aP >0): goto "end" ?(eat2 knowsAbout aP >0): goto "end" eat2 switchmove "PutDownToCombat" goto "loop" #end exit See the bits in Bold, that detects if they know about me. And when it does they stand up, but with thier hands in a "holding gun" stance. As if they have weapons in thier hands. I just need the animation to end when i am seen by them, how can i do that? Also, one more simple question. How can i put a Truck onto its side? I need it to look like the truck has skidded and slipped over. Share this post Link to post Share on other sites
sanctuary 19 Posted July 1, 2003 To put the truck on its side , consult the Mission Editing FAQ topic pinned on this forum Exactly Harnu's post that is located here http://www.flashpoint1985.com/cgi-bin....3;st=60 Share this post Link to post Share on other sites