View unanswered posts | View active topics It is currently Wed Apr 24, 2024 5:33 pm



Reply to topic  [ 8 posts ] 
 Lua: Fantasticness? Or just my imagination? 
Author Message
User avatar

Joined: Sat Apr 05, 2008 11:54 pm
Posts: 116
Location: In your basement
Reply with quote
Post Lua: Fantasticness? Or just my imagination?
With the new lua console and everything else, is it possible to make mission objectives for singleplayer and multiplayer? Missions like Destroy the brain, Get to certain point, etc... ?


Sun Aug 24, 2008 5:39 am
Profile
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post Re: Question.
Yes it is. It requires some more advanced Lua scripting than the basic console stuff, however, and it'd probably be best to wait for the documentation to arrive.


Sun Aug 24, 2008 5:43 am
Profile
User avatar

Joined: Sat Apr 05, 2008 11:54 pm
Posts: 116
Location: In your basement
Reply with quote
Post Re: Question.
Wait for documentation ok. You mind if i call you LT?


Sun Aug 24, 2008 5:49 am
Profile
User avatar

Joined: Wed Dec 27, 2006 10:05 pm
Posts: 100
Reply with quote
Post Re: Question.
I was looking through the base code and found out how to make a get to point objective. Im pretty sure this'll work.

Code:
if SceneMan.Scene:WithinArea("Victory!", self:GetControlledActor(Activity.PLAYER_1).Pos) then self.WinnerTeam = Activity.TEAM_1

ActivityMan:EndActivity();


then use the area editor to make an area called Victory! and place it in your scene


Sun Aug 24, 2008 6:04 am
Profile
User avatar

Joined: Sun Dec 09, 2007 3:08 pm
Posts: 481
Location: Islamic Republic of Bradistan, Yorkshire, England
Reply with quote
Post Re: Question.
Isn't team 1 the green team?


Thu Aug 28, 2008 10:41 am
Profile
Banned

Joined: Tue Aug 26, 2008 6:09 pm
Posts: 432
Reply with quote
Post Re: Question.
Don't we have rules about ambiguous thread titles?


Thu Aug 28, 2008 3:08 pm
Profile

Joined: Fri Mar 16, 2007 1:28 pm
Posts: 328
Location: Finland
Reply with quote
Post Re: Lua: Fantasticness? Or just my imagination?
Why does seeing the name projektODIN make me mad?


Thu Aug 28, 2008 6:33 pm
Profile
User avatar

Joined: Thu Aug 09, 2007 6:37 pm
Posts: 889
Location: Not Jewtown.
Reply with quote
Post Re: Lua: Fantasticness? Or just my imagination?
AtomicTroop wrote:
Why does seeing the name projektODIN make me mad?

It's the bandwagon, but you get over it. Eventually.

No he won't. Any more posts about ODIN gets warns and removed posts.


Thu Aug 28, 2008 6:34 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.040s | 15 Queries | GZIP : Off ]