Home   Help Search Login Register  

Author Topic: Great Info and Hard Q  (Read 551 times)

0 Members and 1 Guest are viewing this topic.

xXNismoXx

  • Guest
Great Info and Hard Q
« on: 30 Dec 2003, 23:31:57 »
how to make house appear:

make a game logic
in the game logic's init field type this:

house= "name of house" createvehicle get pos this; house setdir getdir this

how to get name of any house on any map:

create playable char

make a trigger:

alpha/repeat
on act:
hint format["%1",typeof(nearestbuilding(player))]

when you walk up to the nearest building to you position, the name of that specific building pops up in the left corner. kewl eh?

now, for my question, i'm looking for the name of a stone wall, it probly isn't a "house" cause the name dosn't come up, i've tried to switch "nearestbuilding" to "nearestobject" but an error message pops up.  can anyone point me in the right direction?

Unnamed

  • Guest
Re:Great Info and Hard Q
« Reply #1 on: 31 Dec 2003, 04:36:08 »
If it does not return a type (use the ObjectID and TypeOf commands) I dont think you can create a wall, unless you use an editor addon.

xXNismoXx

  • Guest
Re:Great Info and Hard Q
« Reply #2 on: 31 Dec 2003, 20:29:42 »
darn it,  :(

xXNismoXx

  • Guest
Re:Great Info and Hard Q
« Reply #3 on: 31 Dec 2003, 20:39:53 »
how do u use the object ID and typeof commands?  in theory if it is on or in the game, u should somhow be able to recreate any object, may be difficult but theres got to be a way.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Great Info and Hard Q
« Reply #4 on: 01 Jan 2004, 00:19:53 »
The issue with that being if they have no class name (ie nothing shows up using the 'nearestbuilding/nearestobject' command), you can't camcreate/createvehicle them...

Believe me I've tried, and would be very keen on hearing any possible solutions to the problem... ;)

One alternative of course is to used Ketgey's editor addon... what that does is assign class names to all the 'classless' objects

xXNismoXx

  • Guest
Re:Great Info and Hard Q
« Reply #5 on: 01 Jan 2004, 09:10:01 »
does this addon make it so others don't need to have the addon? if so, I'll just have to mosey around and find a copy of it ;)

Unnamed

  • Guest
Re:Great Info and Hard Q
« Reply #6 on: 01 Jan 2004, 15:18:17 »
I think most people have this addon:

http://www.ofpec.com/includes/download2.php?id=267

xXNismoXx

  • Guest
Re:Great Info and Hard Q
« Reply #7 on: 02 Jan 2004, 04:29:18 »
thanks for the link unknamed