Two Jawas as one character. Impossible?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Daniel0605
Private Third Class
Posts: 47
Joined: Wed Nov 14, 2007 11:42 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Dominica
Contact:

Two Jawas as one character. Impossible?

Post by Daniel0605 »

I know this is a crazy idea, but what I want is to create is two Jawas as one character. You control one, while the other follows. Kind of like the ice climbers in Super Smash Bros. Melee. On a scale of 1-10, with 10 being most impossible, how impossible do you think this is? If you think there's any way it might be possible, please post how you think you would do it. :jawa:
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Two Jawas as one character. Impossible?

Post by [RDH]Zerted »

You can't control two characters, but if you wanted to make the second a friendly AI then it would work. Stick the other guy on a team by himself. Set that team as an ally to yours. Give that team the AI goal of following your character. That AI unit will now try to closely follow you almost where ever you go.
wazmol
High General
High General
Posts: 892
Joined: Sat Sep 02, 2006 6:47 pm
Projects :: Thinking...
Games I'm Playing :: Black Ops
Location: London
Contact:

Re: Two Jawas as one character. Impossible?

Post by wazmol »

say, zer' what would the line be to make an ai follow you around?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Two Jawas as one character. Impossible?

Post by [RDH]Zerted »

AddAIGoal(<ai team>, "follow", <goal weight>, <character/object/entity to follow>)

A real use example:

Code: Select all

AddAIGoal(BODYGUARDS, "Follow", 300, agroGeonosianIndex)
That says the BODYGUARD team should follow the agroGenonosianIndex character. The goal weight is converted into a percentage of the largest goal weight, then that percentage of the AI on the team attempts to do that goal.

More code to better understand what agroGeonosianIndex is:

Code: Select all

local agroGeonosianIndex = GetTeamMember(BOSS, 0)
local agroGeonosianUnit = GetCharacterUnit( agroGeonosianIndex )
Post Reply