Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline FFWorld1986  
#1 Posted : Tuesday, June 20, 2017 11:32:08 AM(UTC)
FFWorld1986
Private
Joined: 6/20/2017(UTC)
Posts: 2
France, Metropolitan

I have set laser defenses near the Player_1_start. But when I launch a skirmsch against CPU, the laser defense doesn't belong to me.

What is the procedure to get defenses and tank when I start the game in skirmisch?

Thanks
Sponsor
Offline Annihilationzh  
#2 Posted : Tuesday, June 20, 2017 11:59:31 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
This is single player, I presume? Click on the units and under object properties, give them all names. I'm going with Laser1, Laser2, etc for this example.

Then Click -> Edit -> Scripts... -> PlyrCivilian -> New Script... -> Actions if true. -> Delete

New... -> Player -> Transfer -> Transfer a specific unit to the control of a player. -> Unit '???' -> (Type Laser1) -> OK -> Player '???' -> (Type Player0) -> OK

Then use Copy and Edit until you have something that looks similar to this:
Code:
  Unit 'Laser1' is transferred to the command of Player 'player0'
 Unit 'Laser2' is transferred to the command of Player 'player0'
 Unit 'Laser3' is transferred to the command of Player 'player0'
 Unit 'Laser4' is transferred to the command of Player 'player0'


You should have one line of code for each defence. Then just repeadly click OK until you're out of the scripts menu and back on the map.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline FFWorld1986  
#3 Posted : Friday, June 23, 2017 10:47:52 AM(UTC)
FFWorld1986
Private
Joined: 6/20/2017(UTC)
Posts: 2
France, Metropolitan

Thank you very much! That work!!!

"Player0" must be <local player>

Thank you again!Cool Thumb Up Cool
Offline Unknown Editor  
#4 Posted : Friday, June 23, 2017 5:37:03 PM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 278
Location: Some where on Earth

Thanks: 123 times
Was thanked: 69 time(s) in 59 post(s)

Or You can Add player0 in your Edit Player List in World builder .
Then Anything in team player0 must be under your Control .
No Scripts needed
Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Offline SkyMix_RMT  
#5 Posted : Friday, June 23, 2017 9:20:20 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Originally Posted by: Unknown Editor Go to Quoted Post

Or You can Add player0 in your Edit Player List in World builder .
Then Anything in team player0 must be under your Control .
No Scripts needed


player0 to 7 don't need to be added in Player List.

player0 corresponds to the first player in the lobby (host)
player1 corresponds to the second player in the lobby
player2 corresponds to the third player in the lobby
and so on...



Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Offline Unknown Editor  
#6 Posted : Saturday, June 24, 2017 12:30:09 AM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 278
Location: Some where on Earth

Thanks: 123 times
Was thanked: 69 time(s) in 59 post(s)
Originally Posted by: SkyMix_RMT Go to Quoted Post
Originally Posted by: Unknown Editor Go to Quoted Post

Or You can Add player0 in your Edit Player List in World builder .
Then Anything in team player0 must be under your Control .
No Scripts needed


player0 to 7 don't need to be added in Player List.

player0 corresponds to the first player in the lobby (host)
player1 corresponds to the second player in the lobby
player2 corresponds to the third player in the lobby
and so on...





And so as You Said player0 is the First Player ; Everything Will Belong to FFWorld1986
Other hand he is Playing Online and someone Else hosts his Map .
This is Actually a Shortcut When There are many Units Which must Belong to you by Scripts and Many Names .
But If You Want To Do it Only For 2 or 3 Units , easily Use Scripts .
Good Luck
Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Offline SkyMix_RMT  
#7 Posted : Saturday, June 24, 2017 6:36:00 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Ohhh, I see now, that's actually very smart I didn't know you could do that.
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.