Home   Help Search Login Register  

Author Topic: convert mp mission to have all AI views, help pls!!  (Read 471 times)

0 Members and 1 Guest are viewing this topic.

bakubaku

  • Guest
convert mp mission to have all AI views, help pls!!
« on: 18 Jan 2004, 08:16:30 »
Hi, I am new to OFP mission editing stuff so please bear with me.

I want to convert MP CTF mission(2-8_T_CAPTURETHEFLAG1.EDEN)so player can switch to any member's view on his/her side. The reason behind this is that I only play this mission with my bro online 1on1 and want to have all AI's view to help
situational awareness.

I add the following code on all the AI's initialization field.
this addaction ["us/ru switch to player","switch_to_player.sqs"];

and add the following to player's initialization
this addaction ["us/ru switch2","switch2.sqs"];
this addaction ["us/ru switch3","switch3.sqs"];
this addaction ["us/ru switch4","switch4.sqs"];

and each of the switch.sqs only have two lines of code:
[us/ru]_soldier[2/3/4] switchcamera "external"
exit

I think it is really reduntant. Is there any way to make it  cleaner?
 
After the AI soldier die, I can no longer access the action menu hence can't switch back to others view.
How do I get round this problem? Do I need to have a trigger to each soldier to check if_not_alive switchback to player?

Also, if the player gets kill and respawn, all the action added is gone hence can't switch to others view. Any workaround?

Also I have the following questions:

1. What does game logic object mean? since I saw this object in a few tutorial mission.

2. What does "respawn" in description.ext of MP mission mean?

3. How do I add something to command menu because I saw a "custom" command there.




I am sorry I didn't look through all the tutorial but I did scan through a few. A link to a particular tutorial that answer my question would be appreciated.
Thank you very much.

Offline Captain Crunch

  • Members
  • *
Re:convert mp mission to have all AI views, help pls!!
« Reply #1 on: 18 Jan 2004, 09:29:41 »
Hi there bakubaku!

  I can't unfortunately answer to all Your questions, but I will to a few of 'em!

"Respawn" in most PC games means that a "dead" unit is brought back to life. Normaly at another location than where the unit was killed.

To add a command in the action menu are several ways. Here's an example:

You have a street lamp and want to turn it on, place the street lamp in the editor and type in its "Init" field:

This addaction ["Turn Light On", "LightOnScript.sqs"]


About the game Logic, you should try and get a tutorial for it. I know one can do lots of different things with it. It can be real useful to one who can use it. (Sorry, I don't much) ???

  I have the comref here so if You don't have it and want it, let me know, I'll post it here.

 :)
Back to the forest!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:convert mp mission to have all AI views, help pls!!
« Reply #2 on: 18 Jan 2004, 13:30:41 »
*scratches head* ... can't quite remember .... think this has been solved ... Vektorboson's viewing script I think ... I'm sure it was him ... check the Ed Depot for all of his stuff, scripts and tutes, I'm sure you'll find what you need.

Respawn in MP games can occur in different ways.   The respawn line in description.ext controls which way it happens.     There are a couple of tutorials on description.ext in the Editors Depot.

Gamelogics are very powerful.   Information thread here.

Oh, and

Welcome to the forum!
« Last Edit: 18 Jan 2004, 13:38:45 by macguba »
Plenty of reviewed ArmA missions for you to play