OmniMax 0 Posted January 26, 2003 Cessna = "Cessna";CreateVehicle GetPos Player ;Cessna AddMagazine "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" ;Cessna AddWeapon "MaverickLauncher" for some reason, this gives me a 'unknown' operator error. I have no idea why. Thanks in advance. note: adding a cessna which is flying and adding the maverick to it doesn't work for me. Share this post Link to post Share on other sites
ralphwiggum 6 Posted January 26, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (OmniMax @ Jan. 26 2003,22:18)</td></tr><tr><td id="QUOTE">Cessna = "Cessna";CreateVehicle GetPos Player<span id='postcolor'> what is that semi colon for? Share this post Link to post Share on other sites
OmniMax 0 Posted January 26, 2003 semi-colon seperates commands in the init field. Or it used to. Without or with the semi-colons, it still gives weird errors. Share this post Link to post Share on other sites
MaxPower44 1 Posted January 26, 2003 RalphWiggum have right, You must delete the first semi colon because the command completed is Cessna = "Cessna" CreateVehicle GetPos Player and not Cessna = "Cessna";CreateVehicle GetPos Player Share this post Link to post Share on other sites
OmniMax 0 Posted January 27, 2003 If I don't make the solider I control's name 'player' I get the 'Unknown Operator CreateVehicle' and if I make the Name of the solider I control to 'player' I get... "Invaild variable name!" Does this require resistance to work? (equipping vehicles with weapons?) Share this post Link to post Share on other sites
Mujahedeen 0 Posted January 27, 2003 I think you must specify the position in 2D or 3D if you're typing this in the init line of some unit or in the activation field of a trigger/waypoint... </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Cessna = "Cessna" CreateVehicle [GetPos player select 0, getpos player select 1, getpos player select 2]<span id='postcolor'> ...I think the other way only works in scripts... Share this post Link to post Share on other sites
suma 8 Posted January 27, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (OmniMax @ Jan. 27 2003,02:14)</td></tr><tr><td id="QUOTE">If I don't make the solider I control's name 'player' I get the 'Unknown Operator CreateVehicle' and if I make the Name of the solider I control to 'player' I get... "Invaild variable name!"<span id='postcolor'> I am not sure if variable player is already defined when doing "init". I recommend using "this" or your own name during "init" phase. Share this post Link to post Share on other sites
Chris Death 0 Posted January 27, 2003 Just one question here: Why do you want to create a vehicle right at the start of a mission? It really makes no sense to me, as you could just place it in the editor to get the same effec: it would be there right from the start. ~S~ CD Share this post Link to post Share on other sites
-crow- 0 Posted January 28, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Why do you want to create a vehicle right at the start of a mission? It really makes no sense to me, as you could just place it in the editor to get the same effec: it would be there right from the start.<span id='postcolor'> Not sure but it looks like what he is trying to do is add "MaverickLauncher" to the cessna. I am thinking that the only way you could do that is to do it in the config.cpp file. I hope I am on the correct path here. The problem is in the cessna does not have any weapons, as far is I have seen. You could simulate the rock launch with a script. Share this post Link to post Share on other sites