bmgarcangel 0 Posted October 17, 2003 Where is a unitname action list....I kind of lost mine so that why i'm here Share this post Link to post Share on other sites
Harnu 0 Posted October 17, 2003 Here you are. Very helpful (unofficial)comref. It's got all the extra's the scripting one doesn't have. Share this post Link to post Share on other sites
DangerTooTH 0 Posted October 20, 2003 That's cool, but the action link is dead. Good link for the command references though. Thanks. Edit - Found it. Share this post Link to post Share on other sites
bmgarcangel 0 Posted October 20, 2003 I do have a few problems. The: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> unitname action ["LIGHTON"] Light on unitname action ["LIGHTOFF"] Light off unitname action ["ENGINEON"] Engine on unitname action ["ENGINEOFF"] Engine off Actions will not work when I put them in. Its getting on my nerves. Can someone help me out here and point out why these wouldn't work?? someone told me that they are screwy at times so ya, I need help Share this post Link to post Share on other sites
toadlife 3 Posted October 20, 2003 Every action in which the syntax is *known* can be found HERE Share this post Link to post Share on other sites
bmgarcangel 0 Posted October 21, 2003 Toadlife. I remember you. from the ofpec fourms. before I was banned for no reason, the israeli president was really an ass hole Anyhow, I found out something. This turns on the engine too! <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> this engineon true Share this post Link to post Share on other sites
Harnu 0 Posted October 21, 2003 I do have a few problems.  The:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> unitname action ["LIGHTON"] Light on unitname action ["LIGHTOFF"] Light off unitname action ["ENGINEON"] Engine on unitname action ["ENGINEOFF"] Engine off Actions will not work when I put them in.  Its getting on my nerves.  Can someone help me out here and point out why these wouldn't work??  someone told me that they are screwy at times so ya, I need help  Perhaps put a space between Engine and on? unitname action ["engine on"] Not sure, but you can give it a shot. Share this post Link to post Share on other sites
bmgarcangel 0 Posted October 21, 2003 Already got it to work! Its not what any of your would expect. Its this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> heli1 engineon true Share this post Link to post Share on other sites
Hjaldar 0 Posted October 22, 2003 Okay, but how do you tell an unit to turn on the headlights of a car? "this lighton true" does not work. Share this post Link to post Share on other sites
MrZig 0 Posted October 22, 2003 If you do that, it automaticly shuts it back off. You have to make a script like say.. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop unitname action ["LIGHTON"] goto "loop" Or something along those lines. Share this post Link to post Share on other sites
Hjaldar 0 Posted October 22, 2003 Sorry, doesn't seem to work. The reason why I'm asking is because in real life, drivers would turn on their headlights even during daytime in winter or in rainy weather. This would make the traffic look better imho, especially on the winter islands. Could look like this (the Volvo's headlights are faked): If anybody has another idea, please feel free to help. Share this post Link to post Share on other sites