lfnetwork.com mark read register faq members calendar

Thread: Problems with scripting (god not another scripting noob you say...)
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-11-2007, 02:09 PM   #1
Thor the Bassis
Rookie
 
Thor the Bassis's Avatar
 
Join Date: Feb 2007
Location: England
Posts: 157
Problems with scripting (god not another scripting noob you say...)

Ok. I've recently started scripting and have been trying for two days to get a script into a level I've been designing. It involves stormtroopers (although they're battle droid models) following the player down the corridors and turning corners after him and stuff.

So far I've successfully tested the script and radiant trigger in a different test map but when I put it in this map It doesn't work - they just stand there. My best guess is that its kind of a 'dazed rabbit' effect like when driving at rabbits. Because they can see me when the script starts they just shoot at me and then wait for me to come back when I run off instead off following the set of navgoals.

Also the navgoals are all connected by waypoints and each is easily seen from the other so its not that they cant see me.


Sometimes in life you're the pigeon. Other times you're the statue.
Thor the Bassis is offline   you may: quote & reply,
Old 06-11-2007, 06:37 PM   #2
Mercenary
 
Mercenary's Avatar
 
Join Date: Jun 2002
Posts: 381
The problem could be many things but you don't connect waypoint_navgoals to waypoints. Waypoints are used along with point_combats. Read the following tutorial:

http://www.map-craft.com/modules.php...utoriaux&did=1
Mercenary is offline   you may: quote & reply,
Old 06-12-2007, 01:16 PM   #3
Thor the Bassis
Rookie
 
Thor the Bassis's Avatar
 
Join Date: Feb 2007
Location: England
Posts: 157
Ahh thanks. All the links I found on the various sites have since been broken as it just takes you to the error 404 page not found. They should really put something more interesting on that page (or at least own up to having lost a web page lol )

EDIT
Its fixed alot of stuff thanks. The only problem is it actually didn't help the bit where the stormtroopers spawn and run after you but this is proberably just a stupid mistake somewhere that will iron out.

I also have another question - how do you get a npc to fall of a ledge and not die because I dont get hurt but Obi-Wan dies or is this just too big a drop for him?

EDIT
fixed everything


Sometimes in life you're the pigeon. Other times you're the statue.

Last edited by Thor the Bassis; 06-13-2007 at 01:22 PM.
Thor the Bassis is offline   you may: quote & reply,
Old 06-13-2007, 01:23 PM   #4
Mercenary
 
Mercenary's Avatar
 
Join Date: Jun 2002
Posts: 381
The NPCs behavior state sometimes has a lot to do with how compliant they are to your scripts. There's a boolean script command that can set an NPC invincible, give that a try for the falling off a ledge problem.
Mercenary is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Mapping > Problems with scripting (god not another scripting noob you say...)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:29 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.