English How To Create a Neutral Building

3 replies
Goto Page
To the start Previous 1 Next To the start
Up
Jhony
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
addhook("build","att")
function att(id,type,x,y)
          if type == 8 then --Turret
               if player(id,"money")>=5000 then
                    parse("spawnobject 8 "..x.." "..y.." "..player(id,"rot").." 0 0 "..id)
end
return 1
end
end


No Have Error in Console
But no Spawn a Neutral Turret
edited 2×, last 09.05.12 09:45:34 pm
09.05.12 09:05:42 pm
Up
krabob
User
Offline Off
Is this a question or are you trying to show people how to do it?

edit: oh now you decided to post your question..
edited 1×, last 09.05.12 09:57:56 pm
People help the people
09.05.12 09:51:02 pm
Up
Infinite Rain
Reviewer
Offline Off
Try team - 0 to spawn neutral building.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
22.05.12 07:37:29 am
Up
omg
User
Offline Off
dunno if anyone will actually read this now, but...

this will give a neutral turret that belongs to u (it shoots every1 except u; it will claim spoils for u; it will be destroyed if u switch teams/leave if u have kill buildings on):
code >


this will create a completely neutral turret that shoots everything (including u); it will not claim spoils for u; it will not be removed should u switch teams/leave:
code >


also: LMAO u checked for 5k but u forgot to deduct 5k
will code for food
To the start Previous 1 Next To the start