OSP:how to add item to use. on multiplayer map (code)

Users who are viewing this thread

Hello,
the question is simple: How do I add an item on a map and then to use, on a multiplayer map
because, I added, but only after an object more and I can not use

how can I add more troops multiplayer_ai?, (I edited module_troop.py)
because, I added, but in selecting equipment, I just listed above troops

thanks in advance

EDIT: at the end of the topic, is the code.  thanks Idibil
 
mauromagno said:
Hello,
the question is simple: How do I add an item on a map and then to use?

because, I added, but only after an object more and I can not use

thanks in advance

You can't use an item that you place on a map.
 
Just call script_replace_scene_items_with_spawn_items_before_ms and script_replace_scene_items_with_spawn_items_after_ms in the multiplayer mission templates. First script is called before mission starts, and the second after - just as the names suggest.
 
Beaver said:
Just call script_replace_scene_items_with_spawn_items_before_ms and script_replace_scene_items_with_spawn_items_after_ms in the multiplayer mission templates. First script is called before mission starts, and the second after - just as the names suggest.

can you tell me as I do in module system?
and where I put it? ... please :smile:
 
In module_mission_templates.

For all the multiplayer game modes (begins with multiplayer_dm) you have to add
(call_script, "script_replace_scene_items_with_spawn_items_before_ms"),
to the trigger that starts with
(ti_before_mission_start, 0, 0, [],
and
(call_script, "script_replace_scene_items_with_spawn_items_after_ms"),
to the trigger that starts with
(ti_after_mission_start, 0, 0, [],

The scripts are in module_scripts - not that you need to change them but it's always good to read through scripts and see what they do before using them.

That should be all.
 
Beaver said:
In module_mission_templates.

For all the multiplayer game modes (begins with multiplayer_dm) you have to add
(call_script, "script_replace_scene_items_with_spawn_items_before_ms"),
to the trigger that starts with
(ti_before_mission_start, 0, 0, [],
and
(call_script, "script_replace_scene_items_with_spawn_items_after_ms"),
to the trigger that starts with
(ti_after_mission_start, 0, 0, [],

The scripts are in module_scripts - not that you need to change them but it's always good to read through scripts and see what they do before using them.

That should be all.

Ok men, thanks,
later, when I come to my house, I proves it  :grin:
 
Back
Top Bottom