Forum

> > CS2D > Scripts > WallSpawnGun
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch WallSpawnGun

16 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen WallSpawnGun

X-Files
User Off Offline

Zitieren
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)
7× editiert, zuletzt 30.01.11 21:45:02

Admin/Mod Kommentar

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

alt Re: WallSpawnGun

PeterToman
COMMUNITY BANNED Off Offline

Zitieren
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

alt Re: WallSpawnGun

X-Files
User Off Offline

Zitieren
-WHiTe SHaRK- hat geschrieben
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

alt Re: WallSpawnGun

X-Files
User Off Offline

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

alt Re: WallSpawnGun

SRAN
User Off Offline

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

alt Re: WallSpawnGun

KimKat
GAME BANNED Off Offline

Zitieren
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.
1× editiert, zuletzt 30.01.11 18:28:03

alt Re: WallSpawnGun

X-Files
User Off Offline

Zitieren
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

alt Re: WallSpawnGun

DannyDeth
User Off Offline

Zitieren
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!

alt Re: WallSpawnGun

Vectarrio
User Off Offline

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

alt Re: WallSpawnGun

X-Files
User Off Offline

Zitieren
Vectar666 hat geschrieben
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 ?

alt Re: WallSpawnGun

Vectarrio
User Off Offline

Zitieren
ok...
every 10 second a pistol, you say?
what pistol exactly? there are 6 pistols, what pistol you want to spawn?
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht