Jump to content

Pants

Members
  • Posts

    4
  • Joined

  • Last visited

Pants's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks Soamp, that works perfectly! I'm not sure how the objecttable works, but I'm sure I'll learn. Aggror, the door:open() was an example just to illustrate my problem. To be specific, if my player character is punching another character, so I need to pick the enemy, and have it run a GetHit() function, the parameter passed needs to be a Lua type holding my character object's rpg-style skill variables, like player.attribute_strength, player.skill_unarmed, and so forth. The problem I was having is that you can not pass lua types as the extra parameter in SendMessage, all it allows is the message, delay, and an extra string. The solution Soamp suggested is exactly what I needed, thanks again.
  2. As far as I can tell, this example uses messages..
  3. Just starting to learn LUA scripting, thanks to Aggrors tutorials. Is it possible to pick an object and have the object execute a function? Can I camera pick a door, and have the door run it's own object:open() method? And if so, how? I know this can be done using SendMessage and ReceiveMessage, but I need to pass more variables than those will allow (lua types, to be specific). Thanks.
×
×
  • Create New...