Jump to content

Home

Problem with Scripted Gunship move


Lindsey

Recommended Posts

Ive been working on a Geonosis map lately for the Movie Battles 2 mod and want to have a gunship intro that brings the rebel team to the map. Ive been learning scripting and been messing around with the gunship and trying to get it to move to a few ref_tags. But for some reason when I try to activate the script ingame, the gunship refuses to carry out the script, and its driving me batty!

 

Heres the .map and script here- http://rapidshare.de/files/3501820/gunship.zip.html

 

If someone could look at it and tell me whats wrong I'd really appreciate it.

 

Heres the script:

 

http://img325.imageshack.us/img325/723/scriptproblem2wy.jpg

 

Thanks for any help you can give a script noob :)

Link to comment
Share on other sites

The script is badly screwed, really. You are not handling the tasks like you should. Task is not a method to alter the form of your script. It's used when you want to monitor the progress of certain commands, most often the move command you are using.

 

This means tasks must be executed with the DO (or DOWAIT) command. Otherwise they are never run. And for obvious reasons you can't execute a task inside the task. And perhaps you shouldn't have tasks inside other tasks. I have no idea how that would behave, but I do have a bad feeling about it.

 

So, correct your script by moving the DO commands outside of the tasks, and unravel the tasks inside other tasks.

 

And anyway, since you aren't using DOWAITs or WAITs, you don't even necessarily need the task system at all. But of course you can use it if you feel like it (and use it correctly).

Link to comment
Share on other sites

Yeah. It's also worth noting, to add to riceplant's remark, that since the script doesn't contain any waiting what so ever, wait("task) or wait(ms), basically only the last command would have any effect. Well, that is, if the script worked at all...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...