FFWorld1986
8 years ago
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
Annihilationzh
8 years ago
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:
  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.
FFWorld1986
8 years ago
Thank you very much! That work!!!

"Player0" must be

Thank you again!😎 👍 😎
Unknown Editor
8 years ago

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%
SkyMix_RMT
8 years ago


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

Originally Posted by: Unknown Editor 



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 
Unknown Editor
8 years ago


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

Originally Posted by: SkyMix_RMT 



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...



Originally Posted by: Unknown Editor 



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%
SkyMix_RMT
8 years ago
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