Forum

> > CS2D > Scripts > WallSpawnGun
Forums overviewCS2D overview Scripts overviewLog in to reply

English WallSpawnGun

16 replies
To the start Previous 1 Next To the start

old closed WallSpawnGun

X-Files
User Off Offline

Quote
Hİii,How can I create a gun spawner wall??
i want;
every 10 second wall a spawn pistolgun
how i can make ?
(sry my ing bad)
edited 7×, last 30.01.11 09:45:02 pm

Admin/mod comment

Pushing/bumping is forbidden. Read the rules! /TKD

old Re: WallSpawnGun

PeterToman
COMMUNITY BANNED Off Offline

Quote
do a delay which triggers item (set it for 10 seconds)
and I think you will need to make a trigger_start (which triggers the env_delay)

P.S : my english setts too lol

old Re: WallSpawnGun

X-Files
User Off Offline

Quote
-WHiTe SHaRK- has written
do a delay which triggers item (set it for 10 seconds)
and I think you will need to make a trigger_start (which triggers the env_delay)

P.S : my english setts too lol


nonono i want make on lua

old Re: WallSpawnGun

X-Files
User Off Offline

Quote
no editor can be this ?
anyone -build wall- 3 and wall 3 every 10 second spawn pistol gun ?
editor is suck

old Re: WallSpawnGun

SRAN
User Off Offline

Quote
i think he meant that he wants a supply makes a kind of weapon every 10 seconds

old Re: WallSpawnGun

KimKat
GAME BANNED Off Offline

Quote
He needs somekind of Lua that spawns weapon inside a wall tile. But why? that doesn't make sense, if it's not a func_DynWall of course. As you cannot enter a wall... but you can open a func_DynWall to grab the gun.

To do this you would need to check for the entity of the "Func_DynWall" together with it's name, so that if it exists then spawn weapon on it's tile otherwise.

Let's say we create a entity Func_DynWall.

Name: w_wall1
Trigger:
Property: (Wall)

Then you make the Lua script and check for it.
edited 1×, last 30.01.11 06:28:03 pm

old Re: WallSpawnGun

X-Files
User Off Offline

Quote
addhook("build","tripleturretkill")
function tripleturretkill(id,type,x,y,mode,objectid)
x=player(objectid,"tilex")
y=player(objectid,"tiley")
if objectid==5 then
parse ("spawnitem 4 "..(x-1).." "..(y-1))
end
end

I imagine doing this much, but was wrong

old Re: WallSpawnGun

DannyDeth
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
function wall_wep(wepid,x,y,lruo)
	if lruo == "l" then
		parse("spawnitem "..wepid.." "..(x-1).." "..y)
	elseif lruo == "r" then
		parse("spawnitem "..wepid.." "..(x+1).." "..y)
	elseif lruo == "u" then
		parse("spawnitem "..wepid.." "...." "..(y+1))
	elseif lruo == "o" then
		parse("spawnitem "..wepid.." "..x.." "..(y-1))
	end
end

Call the function with wall_wep(weapon_id,walls X,walls Y,orientation)

orientation must be :
l = left
r = right
u = under
o = over

Hope it works!

old Re: WallSpawnGun

Vectarrio
User Off Offline

Quote
I got it.
You want to get script which makes wallIII act like a supply. So, you build a wall, and this wall spawn guns, right?
P.S. Please, don't "push" again.

old Re: WallSpawnGun

X-Files
User Off Offline

Quote
Vectar666 has written
I got it.
You want to get script which makes wallIII act like a supply. So, you build a wall, and this wall spawn guns, right?
P.S. Please, don't "push" again.


yes vectar right you make this lua for me ?

old Re: WallSpawnGun

Vectarrio
User Off Offline

Quote
ok...
every 10 second a pistol, you say?
what pistol exactly? there are 6 pistols, what pistol you want to spawn?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview