Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect Area to Entity
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#9
RE: Connect Area to Entity

(08-14-2011, 09:56 PM)Phoroneus Wrote: I have both Blender 2.49 and Blender 2.5. When you put the model into Level Editor, did it show up as just a wireframe (or invisible until selected)? That's what prompted me to get 2.49, since the COLLADA exporter on 2.4x worked with the HPL editor while the newer version in 2.5 doesn't... or didn't when I tried it.
It looked like it did in Blender, that is, with grey faces. In other words, the object with no textures (this only proved a problem when the level editor background had the same color as the object). Aside from that, the position of the object differed from the original. Instead of standing up straight, it was rotated at a 90 degree angle (though that wasn't a problem for me).

(08-14-2011, 09:56 PM)Phoroneus Wrote: How does your monster health system work? I'd like to try that with AddAttachedPropToProp as you suggested. It'd take out the area step pretty handily.
I have an int array which stores the health of the monsters. The index that the monster's health is stored at is based on the int i give to the monster with SetLocalVarInt(); the monster name being the name of the local var. I have two custom functions, GetEnemyHealth() and SetEnemyHealth() which retrieves and modifies the monster's health. These functions pass the monster name (taken from the first string parameter) to GetLocalVarInt(), which is then used to access the current health of the monster from the array. Since GetLocalVarInt() returns 0 if the local var does not exist, you have to manually specify the indexes for each monster in the OnStart() function, which also gives you the chance to specify the default, starting health of the monster.

Tutorials: From Noob to Pro
(This post was last modified: 08-14-2011, 10:29 PM by Your Computer.)
08-14-2011, 10:27 PM
Website Find


Messages In This Thread
Connect Area to Entity - by Phoroneus - 08-14-2011, 07:00 PM
RE: Connect Area to Entity - by palistov - 08-14-2011, 07:28 PM
RE: Connect Area to Entity - by Your Computer - 08-14-2011, 07:35 PM
RE: Connect Area to Entity - by Phoroneus - 08-14-2011, 08:09 PM
RE: Connect Area to Entity - by Your Computer - 08-14-2011, 08:39 PM
RE: Connect Area to Entity - by Phoroneus - 08-14-2011, 08:51 PM
RE: Connect Area to Entity - by Your Computer - 08-14-2011, 09:21 PM
RE: Connect Area to Entity - by Phoroneus - 08-14-2011, 09:56 PM
RE: Connect Area to Entity - by Your Computer - 08-14-2011, 10:27 PM
RE: Connect Area to Entity - by Phoroneus - 08-14-2011, 10:33 PM
RE: Connect Area to Entity - by Your Computer - 08-15-2011, 02:46 AM
RE: Connect Area to Entity - by Phoroneus - 08-15-2011, 09:42 AM
RE: Connect Area to Entity - by palistov - 08-14-2011, 11:31 PM
RE: Connect Area to Entity - by Tanshaydar - 08-14-2011, 11:36 PM
RE: Connect Area to Entity - by palistov - 08-14-2011, 11:37 PM
RE: Connect Area to Entity - by Tanshaydar - 08-14-2011, 11:40 PM
RE: Connect Area to Entity - by Phoroneus - 08-15-2011, 01:01 AM
RE: Connect Area to Entity - by Apjjm - 08-15-2011, 01:52 AM



Users browsing this thread: 1 Guest(s)