Jump to content
Sign in to follow this  
thetrooper

spawn object under same name

Recommended Posts

Hi all, I've got an object that triggers something when it's present. Easy to delete, but how do you spawn the object with the same name?

Share this post


Link to post
Share on other sites

First, create marker (in the editor) named tankFact. Then in the script file/trigger paste this:

abrams = "M1Abrams" createVehicle markerPos "tankFact"; // create tank named abrams on the maker with name tankFact

... and if you want delete this tank, paste this on second line:

deleteVehicle abrams; // delete tank named abrams

... and if you want to create vehicle with the same name, use:

abrams = [i]"vehicleClass"[/i] createVehicle markerPos "markerName"; // create vehicle with the same name

Hope you understand. :o

Edited by [CSLA]LUKI
mistake in script

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×