Problem mit Scripten (zB benutzbare Gegenstände)
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.