Little script please.
Moderator: Core Staff
Little script please.
Hi, again. Could some nice person hand a script that deletes, a set of brushes and replaces them or something like that.
Like in foy for the bell tower on the church. A tank shoots it and it blows up and then you got a hole in it.
Like in foy for the bell tower on the church. A tank shoots it and it blows up and then you got a hole in it.
To make something solid/unsolid:
To make things invisible/visible, use hide(); and show(); instead of solid(); and notsolid();
Make the brush you want a script_brushmodel and give it the target name of 'whatever' (in this case). The trigger has targetname 'whatever_trig', which you can also change accordingly.whatever()
{
trigger = getent ("whatever_trig","targetname");
whatever = getent ("whatever","targetname");
while(1)
{
trigger waittill ("trigger",user);
whatever solid();
trigger waittill ("trigger",user);
whatever notsolid();
}
}
To make things invisible/visible, use hide(); and show(); instead of solid(); and notsolid();
D'ont forget peds, you can also use
Code: Select all
ent delete();
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
only use delete if you wish to delete the object. Deleting the object will completely remove it, if you reference the object after deleting it, your script WILL crash.oppdelta wrote:ok so ummm... whihc i use?
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
that church tower on foy, i think there is a tut on this site for blowing shit up
EDIT: here it is http://codjumper.com/forums/viewtopic.php?t=1697
EDIT: here it is http://codjumper.com/forums/viewtopic.php?t=1697
YaNo wrote:I use Cool as my UO compiler Try it, it works!
Who is online
Users browsing this forum: No registered users and 30 guests