myonlake Posted November 1, 2011 Share Posted November 1, 2011 (edited) Hello, Is it possible to destroy a pedestrian? I will post my script if true. Edited May 30, 2019 by myonlake Link to comment
Castillo Posted November 1, 2011 Share Posted November 1, 2011 By pedestrian you mean a ped that you created via createPed right? if so, then of course, use destroyElement. Link to comment
myonlake Posted November 1, 2011 Author Share Posted November 1, 2011 If I put a pedestrian in a XML file, and if I want to like, destroy it, does the script understand to destroy the pedestrian or does it just output me an error of invalid value in destroyElement? Link to comment
Castillo Posted November 1, 2011 Share Posted November 1, 2011 What do you mean by put a ped in a XML file? do you mean a value for then create it? Link to comment
myonlake Posted November 1, 2011 Author Share Posted November 1, 2011 Well, I make a pedestrian with a command, it saves the following XML node in the file. <pedestrians> <ped id="1" /> </pedestrians Does the script understand the pedestrian that I just gave an ID. If I destroyElement it? Does it understand to delete it or will it output an error? Link to comment
Castillo Posted November 1, 2011 Share Posted November 1, 2011 The script will not do magic, you must have a function to load the peds from the XML, then you should create a table and store them by a index, or name. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now