English [Request] Turret Follow

8 replies
Goto Page
To the start Previous 1 Next To the start
15.05.12 11:59:31 pm
Up
Jhony
User
Offline Off
Turret following you

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--[[
-------By SheeL/Manivela------
E.N.J.O.Y  - - - - -  - E.N.J.O.Y
]]--
seconds = 10000

addhook("second","turret")
function turret()
for id = 1,32 do
parse("spawnobject 12 "..player(id,"tilex").." "..player(id,"tiley").." "..player(id,"team"))
end
end

addhook("ms100","falsee")
function falsee()
for id = 1,32 do
seconds=seconds-1
if seconds < 10000 then
parse("killobject "..id)
print(seconds)
end
return 1
end
end


In script , The Turret Follow you but
She explode
its Possible Change to no explode?
pls help me
Thanks !
edited 5×, last 16.05.12 01:14:26 am
16.05.12 12:00:55 am
Up
oxytamine
User
Offline Off
There is a pet script, you can try to edit it.
16.05.12 12:10:28 am
Up
Jhony
User
Offline Off
There's: (
16.05.12 01:48:42 am
Up
DarkLight66
User
Offline Off
When a turret is destroyed it always explodes so you can't actually change that. You can try what Arxi said thought
Paradox
16.05.12 10:14:33 am
Up
EngiN33R
Moderator
Offline Off
I'll tell you a secret.

Spoiler >
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
16.05.12 11:06:23 am
Up
MikuAuahDark
User
Offline Off
user EngiN33R has written:
I'll tell you a secret.

Spoiler >

how? with image?
Hello? Are you there, Tae Hanazono?
16.05.12 11:07:14 am
Up
TimeQuesT
User
Offline Off

yeah


(table all images --> find the turret yea)
Muh
16.05.12 11:58:12 am
Up
DC
Admin
Offline Off
Be very careful when moving turrets or other buildings though. Consider that it's clearly nothing which was intended by me. It's just possible because buildings and images (and npcs) are all dynamic objects. It might lead to bugs. Especially when talking about collisions.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
16.05.12 12:37:39 pm
Up
Ultimate programmer
BANNED
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
x=0
y=0
yaw=0

addhook ("ms100","move turret")
function(move)
a=a+1
y=y+0.5
yaw=yaw+1--as i remember it is in digress
imagepos(1,x,y,yaw)--object(npc,building,image)(including pasted on map editor) with id=1 will move to x,y,and rotate for yaw
end
To the start Previous 1 Next To the start