Command to destroy script_object like a crate, no explosion?
Moderator: Moderators
-
BirdsofaFeather
- Sergeant
- Posts: 72
- Joined: Sun Aug 24, 2003 3:49 am
Command to destroy script_object like a crate, no explosion?
I know how to make a script object explode, but is there a way to make it "explode" like a crate, with no explosion, just the breaking apart effect? I have a wooden structure that I want to break apart like a crate at a certain time in script, and I don't want to have to split it up into segments and run physics to get the effect I want of it falling apart, as it is not very important and the crate effect would be perfect.
Look! Up in the sky! It's a Bird! It's a Plane! It's......oh wait it's a bird.
<Your MOHAA Mapping Friend in the Sky
>
<Your MOHAA Mapping Friend in the Sky
I dont think he wants it player destroyable(at least not through random gunfire), but killed by an event instead. He just wants to use the crate breaking animation rather then exploder chunks....I have a wooden structure that I want to break apart like a crate at a certain time in script,
at least thats how i read it =)
umm can you set the health of the crate insanely high? and then do damage to it via the script?
When I am king, you will be first against the wall~


well make the crate indestructible until you want it destroyed and deal damage to it.
$crate.spawnflags = 1
when you want that cancelled so it can be destroyed
$crate.spawnflags = 0
unless it's spawned with those flags for the game.
$crate.spawnflags = 1
when you want that cancelled so it can be destroyed
$crate.spawnflags = 0
unless it's spawned with those flags for the game.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
-
BirdsofaFeather
- Sergeant
- Posts: 72
- Joined: Sun Aug 24, 2003 3:49 am
That is correct, I don't want players to be able to destroy it. I hadn't thought about changing the spawnflags, how would I deal damage to it manually through script?I dont think he wants it player destroyable(at least not through random gunfire), but killed by an event instead
Look! Up in the sky! It's a Bird! It's a Plane! It's......oh wait it's a bird.
<Your MOHAA Mapping Friend in the Sky
>
<Your MOHAA Mapping Friend in the Sky
Try this
crate_killer:
$mycrate.health = 100000
wait 10
$mycrate kill
iprintln "Boom!"
end
$mycrate.health = 100000
wait 10
$mycrate kill
iprintln "Boom!"
end

