Civilian building??

Civilian building??

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
davidovo
Posts: 21
Joined: 06 Dec 2012, 21:12

Civilian building??

Post by davidovo »

Hi again, I wish to know if I need to create a new side (civilian) to put civilian in-game wich won't be automaticly attacked by players unit.

But those civilian will be able to be targetted manually.

Also I want to put civilian building in-game.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Civilian building??

Post by knorke »

there is Gaia team.
you must make a lua script that spawns units for that team.
http://springrts.com/wiki/Lua_Scripting

for example duke_spawner.lua in this map:
http://zero-k.info/Maps/DetailName?name ... 0nukem%204
won't be automaticly attacked by players unit.
But those civilian will be able to be targetted manually.
Spring.SetUnitNeutral
http://springrts.com/wiki/Lua_SyncedCtrl
davidovo
Posts: 21
Joined: 06 Dec 2012, 21:12

Re: Civilian building??

Post by davidovo »

Super thanks dude
Post Reply

Return to “Lua Scripts”