Page 1 of 1

setproperty changing vehicle spawn

Posted: Thu Jun 17, 2010 11:26 am
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

Re: setproperty changing vehicle spawn

Posted: Thu Jun 17, 2010 11:29 am
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?

Re: setproperty changing vehicle spawn

Posted: Thu Jun 17, 2010 11:37 am
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 :)

Re: setproperty changing vehicle spawn

Posted: Thu Jun 17, 2010 5:28 pm
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.

Re: setproperty changing vehicle spawn

Posted: Thu Jun 17, 2010 8:43 pm
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

Re: setproperty changing vehicle spawn

Posted: Thu Jun 17, 2010 8:49 pm
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.

Re: setproperty changing vehicle spawn

Posted: Thu Jun 17, 2010 9:07 pm
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