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
Phoroneus Offline
Member

Posts: 141
Threads: 12
Joined: Feb 2011
Reputation: 0
#10
RE: Connect Area to Entity

(08-14-2011, 10:27 PM)Your Computer Wrote: It looked like it did in Blender, that is, with grey faces. In other words, the object with no textures. 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).

That'd be the Y- versus Z- as up discrepancy between Blender and HPL, then. That's good news, actually. I'll give 2.5 a shot and see if I can get it working in-game. 2.4 is nice but having to manually set some of the stuff that 2.5 has already (like different window views and so on) is a pain when it needs to be done every time.

(08-14-2011, 10:27 PM)Your Computer Wrote: 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.

That's pretty brilliant. I'll see if I can emulate it (credit given to you if I end up using it in my project).
Bad news. While I've got the code working properly, enemies do not count as props, so nothing can be attached to them.

Still looking for a solution, if anyone has one. :/

[Image: at_9365860.png]

Follow Harvest.
(This post was last modified: 08-14-2011, 11:02 PM by Phoroneus.)
08-14-2011, 10:33 PM
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)