setproperty changing vehicle spawn

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
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

setproperty changing vehicle spawn

Post by Deviss »

hi there again :D i am learning a bit more of modding as lua so using it i am improving my campaigns , so my question is if is possible change vehicle spawn name via lua :) example in hoth spawn atat for impattack so i can change to impattack atte? i found this line very simil but i cant find way for make it work
SetProperty("cp3", "CaptureRegion", "cp3_capture_outofreach")

thanks in advance
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: setproperty changing vehicle spawn

Post by Maveritchell »

I don't believe that you can use SetProperty on vehicle spawns. Command posts are different because they use "instance properties" (which are specific to each individual CP) in addition to object properties (which are used for every instance of that type of object).

There's almost always a workaround, though - what are you trying to do?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: setproperty changing vehicle spawn

Post by Deviss »

Maveritchell wrote:I don't believe that you can use SetProperty on vehicle spawns. Command posts are different because they use "instance properties" (which are specific to each individual CP) in addition to object properties (which are used for every instance of that type of object).

There's almost always a workaround, though - what are you trying to do?
so is other crazy idea dont work :S , i am trying change name of vehicle spawn, for no need add extra layers maybe if in lua i could change the atte rep_walk_atte change his name to imp_walk_atat so yeah will appear in map??

offtopic: thanks by your fast answer and help :)
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: setproperty changing vehicle spawn

Post by Maveritchell »

Deviss wrote:i am trying change name of vehicle spawn, for no need add extra layers maybe if in lua i could change the atte rep_walk_atte change his name to imp_walk_atat so yeah will appear in map??
I don't know why you'd care about the name of a vehicle spawn at all, since it's mostly irrelevant. A vehicle spawn does give you options to set different vehicles based on the team using them, and it has more than just two teams.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: setproperty changing vehicle spawn

Post by Deviss »

Maveritchell wrote:
Deviss wrote:i am trying change name of vehicle spawn, for no need add extra layers maybe if in lua i could change the atte rep_walk_atte change his name to imp_walk_atat so yeah will appear in map??
I don't know why you'd care about the name of a vehicle spawn at all, since it's mostly irrelevant. A vehicle spawn does give you options to set different vehicles based on the team using them, and it has more than just two teams.
i know but for example hoth he havent vehicles for rep and i want put atte instance of atat so i need vehicle spawn read other name xD
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: setproperty changing vehicle spawn

Post by Maveritchell »

Deviss wrote:i know but for example hoth he havent vehicles for rep and i want put atte instance of atat so i need vehicle spawn read other name xD
You can either make a new (empty) layer and read it in on top of Hoth, or you can create a vehicle for whoever, name it "imp_walk_atat" and then localize it to something else.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: setproperty changing vehicle spawn

Post by Deviss »

Maveritchell wrote:
Deviss wrote:i know but for example hoth he havent vehicles for rep and i want put atte instance of atat so i need vehicle spawn read other name xD
You can either make a new (empty) layer and read it in on top of Hoth, or you can create a vehicle for whoever, name it "imp_walk_atat" and then localize it to something else.
the first one is what i am trying dont make, and the second will make my side bigger :S , better i use the one as you said :) many thanks
Post Reply