How do I attach effects to terrain? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

How do I attach effects to terrain? [Solved]

Post by SBF_Dann_Boeing »

can someone point me to the "how to make a volcano" thread, the search function isn't working
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

RE: A Little Help

Post by -_- »

Raise Terrain (Bell works best)> Lower the center of your to a lower height > Add in water > Add death Regions > Reference in .lua > Done.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Post by Maveritchell »

http://www.gametoast.com/forums/viewtopic.php?t=10075

Cheers. It's really just a matter of making a hill with effects and a damageregion.
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Post by SBF_Dann_Boeing »

thx, unfortuneatly what i wanted to find out was how to attach the effects to the terrain.

also does anybody know when the search is gonna be fixed?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Post by Maveritchell »

All you need to do is stick an object in there to which you can attach effects, and sink the object below the terrain. Objects (which are invisible) like kas2_prop_splash (or something like that) have multiple hardpoints to attach to and work well.
squid11

Post by squid11 »

{501st}Commander_Appo
1st Lieutenant
1st Lieutenant
Posts: 441
Joined: Thu Jun 14, 2007 2:40 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Earth
Contact:

Post by {501st}Commander_Appo »

Mav already gave Dann the link to the tuturioal,congrats on being under watchful eyes :lol:

CC-1119/Commander Appo
:troop:
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Ace_Azzameen_5 »

"AttachEffectToMatrix(lua_State* aState);"

This is a LUA function from the SS list I'm not sure but I think a matrix is a terrain grid location. Might want to mess around with it; AttachEffectToMatrix(EffectName, ALocation). If you can't get it to work by typing in locations directly, try this:

local locDest = GetPathPoint(PathName), and then AttachEffectToMatrix(EffectName, locDest)

This was you could try spawning effects on a path, so to speak. I salvaged some of the code from the Teleport thread.
Post Reply