Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Gabin Dayback

#1
SWBF2 Modding / Restricting AI (Capture CP)
March 09, 2018, 06:36:39 AM
So I am having a small problem with a LUA Command for geo1c_con (Geonosis / Conquest / Clone Wars).

I am usually using the following commands to restrict the AI from capturing Command Posts:

    AICanCaptureCP("cp1", ATT, false)
    AICanCaptureCP("cp2", ATT, false)
    AICanCaptureCP("cp3", ATT, false)
    AICanCaptureCP("cp4", ATT, false)
    AICanCaptureCP("cp5", ATT, false)
    AICanCaptureCP("cp6", ATT, false)
    AICanCaptureCP("cp7", ATT, false)

It worked on all the maps I munged up until now. Is there a reason why it doesn't work on Geonosis? :(
#2
Hello again.

Scenario:

- Munged a Conquest Map and Disabled the Multiplayer Rules. (multiplayerRules = false)

Goal:

- Get the New Objective Popup Screen when the game starts. (Just like in any other campaign mission.)
- Remove the Yellow Arrows / Yellow Map highlights pointing the CPs.

How can this be done and what is the best / easiest way?

UPDATE (SOLVED)

It seems I have figured this out. I will post the solution here for future references:

   
    --This adds the CPs to the objective.  This needs to happen after the objective is set up
    conquest:AddCommandPost(cp1)
    conquest:AddCommandPost(cp2)
    conquest:AddCommandPost(cp3)
    conquest:AddCommandPost(cp4)
    conquest:AddCommandPost(cp5)
    conquest:AddCommandPost(cp6)

   
    conquest:Start()

    MapRemoveEntityMarker("cp1")
    MapRemoveEntityMarker("cp2")
    MapRemoveEntityMarker("cp3")
    MapRemoveEntityMarker("cp4")
    MapRemoveEntityMarker("cp5")
    MapRemoveEntityMarker("cp6")


#3
Hello.

I have a quick question for experienced LUA scripters:

Is there a LUA Command / Line that makes only one team playable (ATT / DEF) for a specific map?

To make sure I am specific as possible I will provide the following scenario:

- Munge a New Map (Era: CW / Sides: Rep vs. Cis / Mode: Conquest)

Can I make the new map so it can only allow me to play with REP and restrict me from selecting CIS? (Just like in the Campaign.)