callihn 10 Posted July 22, 2010 Iv'e tried the following and several variations and I have a game logic called vehspawn as well, but nothing happens. _unit="myvehicleclass" createVehicle (getMarkerPos "vehspawn"); Don't think this one can work anyway since it requires a group andI read that an empty vehicle can't be in a group. "myvehicleclass" createUnit [getMarkerPos "vehspawn", _groupveh]; What am I doing wrong here please? Thanks Share this post Link to post Share on other sites
[frl]myke 15 Posted July 22, 2010 I have a game logic called vehspawn getMarkerPos Do you get it yourself? Beside that, a empty vehicle doesn not need to be in a group since a vehicle is not a AI. What you mean are units, created with createUnit (obviously). Share this post Link to post Share on other sites
-)rStrangelove 0 Posted July 22, 2010 What class does the vehicle have you want to spawn? "myvehicleclass" doesnt work on its own. Share this post Link to post Share on other sites
callihn 10 Posted July 22, 2010 Myke;1692952']Do you get it yourself?Beside that' date=' a empty vehicle doesn not need to be in a group since a vehicle is not a AI. What you mean are units, created with createUnit (obviously).[/quote'] I've set a marker up named "vehspawn", I can see it as well, not sure what you mean by "get it yourself". Right, though I guess you can use "" in place of the group? At least it does not error, though I still have no vehicle. )rStrangelove;1692955']What class does the vehicle have you want to spawn?"myvehicleclass" doesnt work on its own. What do you mean? That's the classname of the vehicle I want to spawn. Thanks Share this post Link to post Share on other sites
TechnoTerrorist303 10 Posted July 22, 2010 (edited) Because you're trying to get the marker position of something that isn't a marker? Try using getpos instead of getmarkerpos. never mind, I actually read your last post... I had this problem before and I don't claim to understand the solution but it is as follows.... (wait a sec while I copy and paste) vehiclename = createVehicle ["vehicleclass", [(getMarkerPos "spawnmarker") select 0,(getMarkerPos "spawnmarker") select 1,50], [], 0, "Fly/none/in formation etc"]; That could well spawn 50m up so test it a couple of times :) Edited July 22, 2010 by TechnoTerrorist303 Share this post Link to post Share on other sites