PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit Scripten (zB benutzbare Gegenstände)



RaVaGe
04.12.2005, 14:21
Hab folgenes Problem:
Starte zB SP gm_construct. Dann mach ich cheats an und will ein benutbaren Gegenstand machen. Mit der Anleitung:
Making something happen when Player uses an Object

Turning an object into a Button that causes an event when pressed.

1. Spawn a Suit Charger

2. Spawn an Explosive Barrel

3. Point/Aim at the Suit Charger and in the console type: ent_setname button

4. Then in console type: ent_fire button addoutput “spawnflags 256” (this turns any object into a button)

5. Point/Aim at the Explosive Barrel and in the console type: ent_setname exploder

6. Now in console type: ent_fire button addoutput “onplayeruse exploder,break”

7. When you Use the Suit Charger(press E) as a Button, the Barrel should explode.

Hab ich alles gemacht, aber wenn ich den Suit Charger benutze passiert nichts!

Freue mich wenn mir jeamand helfen könnte.

Blackfinal
04.12.2005, 15:24
ich würds mal so versuchen

6. Now in console type: ent_fire button addoutput “onplayeruse explode,break”


Ohne ein R hinter dem exlpode

RaVaGe
04.12.2005, 16:00
Ne, exploder is ja der name.

Aber kann auch sein das das irgend ein Prob mit sv_cheats 1 ist.Bin mir aber nicht sicher.

Blackfinal
04.12.2005, 16:01
Nun sv_cheats sollten an Sein!

Edit: Habe es Selber ausprobiert Klappt alles Wunderbar!!!1

RaVaGe
04.12.2005, 16:08
Ich geb ja sv_cheats 1 ind die Konsole ein aber ich glaube irgendwie das der das nicht animmt.

Blackfinal
04.12.2005, 16:17
Normalerweise wenn du die cheats aus hast und ent_ Commands eingibst kommt dann dies :

Can't use cheat commands in multiplayer, unless the server has sv_cheats set to 1.

und wenn du die cheats an hast und eingibst ent_setname sollte dies in der Console erscheinen :

Set the name of prop_physics to test

RaVaGe
04.12.2005, 16:24
Weis nicht warum aber es funktioniert.
Danke!