Dea Posted February 13, 2003 Share Posted February 13, 2003 I've been having some trouble giving kyle a lightsaber. I want him to start without, as it is in his pocket, and later, during a cutscene, I want him to grab his saber. I have this working on the cutscene NPC, but after the scene is done the player doesn't have a saber (obviously, as the two entities aren't the same). How do I give the player a saber? I've tried target_give, but that crashed the map with some vague error, and I can't figure out how to do it with a script. Please help Link to comment Share on other sites More sharing options...
000nate Posted February 13, 2003 Share Posted February 13, 2003 A hard question. But you might try spawnin the atuall saber underneath Kyle himself as soon as the cutscene is over. So he immediately turns the saber on. And also obtains it in the process. I'm not entirely certain this will work with items (such as the saber) but its worth a try. :You can spawn a person or object by using triggers and pointing them at that object, however like I said I'm not entirely certain this will work. Link to comment Share on other sites More sharing options...
Dragarius Posted February 13, 2003 Share Posted February 13, 2003 If Kyle has already picked up and turned on the lightsaber, it would look silly for him to turn it on again after the cutscene. The kejim_post (any level actually) scripts provided are a great source of examples on how to script anything. I suggest starting with one of those. Link to comment Share on other sites More sharing options...
Leslie Judge Posted February 13, 2003 Share Posted February 13, 2003 With a little knowledge about scripting I say you should put an affect command to affect your player entity at the end of your cutscene script and in that you can give him a sabre or anything. I guess... Link to comment Share on other sites More sharing options...
Kengo Posted February 14, 2003 Share Posted February 14, 2003 The player is called kyle in scripting. So affect 'kyle' , then the set command, set_weapon and select saber. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.