hey
how it is possible to spawn an model into a map , for example when the airstrike is launched a plane is spawned and flies over the aistrike canister.?
hey
how it is possible to spawn an model into a map , for example when the airstrike is launched a plane is spawned and flies over the aistrike canister.?
I’d suggest you look at mlb_carnage, when the main bunker is blown, a place flies by and drops a bomb. I don’t recall if you can actually see the plane, however, but it might be a good place to start.
not as simple as that i dont think
as your moddle would have to be inside the skybox meaning on maps like goldrush it would have to be below roof level
i dont wanna make a map , just a mod
but cant find the right function wich allows me to spawn smt like the player spawn
well your going to have to write a function that will spawn an entity (your model) at the desired location actually it will be more complex than that especially if u want it to take a path. you will have to get origins etc also, use some moving of the thing with path_corners or a script maybe.
I think the way it’s normally done is to have it spawn at in invisible point on the map when the map loads, then move instantly to the start point of the run. It then appears to spawn instantly, but it hasn’t.
Another option that comes to mind is ET’s changemodel function. You could spawn an invisible model at map load, then swap it for the plane when required.
Yep, but I think he’s trying to do a mod where when you throw an airstrike canister a plane spawns and flies overhead. This would probably require a heavy amount of coding for it to appear even halfway decent.
yeah but spawning the model is the one part (maybe modify the ejecting brass function…) but i imagined that the plane could use the airstrike vectors to fly in the right direction. that would have a nice look…
Why not make the airstrike vector match the plane? In reality, the guy on the ground often has little-to-no control over where his A/S comes from. Why not randomise it? It’ll make them think twice before throwing airstrikes instead of smoke!
hmm , you will do best if you will do following : itegrate create thing to mapscripts ( you can use etpub function ) , then add plane_start , plane_end things to map , and at last run plane there…
Maybe it can be better if you will use more plane_start and set them their plane_end as targets…
at last check if there are any plane_ things , if they arent simply no plane will fly… , or you can use corner points of map…