![]() |
scripting help?
I can spawn weapons into stock and custom maps BUT i wanna make the respawn time longer but can't find out how. Also i wanna know if you can script in explosions into dest. vill like the ones in omaha?
|
i never figured out how to change the respawn time, but i would think that there has to be a setting somewhere.
as for the explosions, yes you do this fairly easily with a little scripting. a) get the coordinates of where you want the explosions to be. b) write a little thread into destroyed village that spawns them every random amount of seconds. it would something like... //(put this part at the main script section thread crazy_explosions //(put this part after the main section and before the very bottom crazy_explosions: local.waittime = randomint(45) + 15 // gets random # between 15 & 60 wait local.waittime spawn fx/explosion/mine.tik "origin" "x y z" //where x,y,&z are the coords // (i just guessed on the tiki file name above) goto crazy_exlosions |
of, don't forget an "end" line after the goto to end the thread
|
thanx,
I'll give it a run and tell ya how it came out |
here's the tik you guessed on "emmiters/fx_explosion_mine.tik" but i'v enever been able to get ANY of the emmiter tiks to work. Some one said it was a typo and use "emiters/fx_explosion_mine.tik" (one M) and that still didn't work. Any other ideas?
|
i tried to get emmiters to work and couldn't either.
but that's not how i got my mines to work. i am at work and don't have the game or pak files in front of me. (not sure if they are still at home either) but i am almost positive that i didn't use emmitters. There is an explosion model for mines, and i think that's what i used. try looking in models/fx/ or something like that. (if have all the game pak files unzipped, do a search through for any file that has mine in it) what i was doing was creating a minefield. i spawned triggers at certain locations. when the triggers were tripped, the result was a spawn of a mine explosion. you are basically trying to do the same thing, but spawning the mine explosions on a schedule instead of through a trigger. |
Quote:
|
where the x, y, and z are.
and like this... spawn blah/blah.tik "origin" "1000 -1000 1000" |
thanx... I'll give it a shot
|
coord in console.
|
[quote="Lt. SnowBall [70th ID]A2":43ca0]coord in console.[/quote:43ca0]
LOL i know that but the script didn't work :-( |
|
so
|
what was the problem with the script?
|
i did what you sent, put in the coords and it never worked
|
All times are GMT -6. The time now is 12:28 AM. |
Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.