Ulysses Stuff > Suggestions

[Request] Spawn Vehicle Plugin

<< < (2/2)

JamminR:
Pal, though I've not looked at code to know (and been so long I forget), if a vehicle entitiy is spawned the same way as a npc entity, perhaps his function would be a good chance to learn on your own.
:)
Best way I ever learned was by looking at others code when I wanted to do something similar.

MrPresident:
I could do this, sure. The code wouldn't take too much modifying, and I could make it dynamic so that you could add new npcs to a table and it'll allow you to spawn them that way. I could also add a parameter for weapon and player affiliation of you want.

let me know what you want it to do.

PAL-18:
That would be AWESOME.  Many Thanks! <3

It would be great if there were an optional configurable setting that spawns the npc a few feet in the air (some big ones like the helicopter and combine dropship spawn in the ground and cant move around).

P.S. I tried myself, but i can't wrap my mind around programming schema.

PAL-18:

--- Quote from: JamminR on June 18, 2013, 06:16:52 AM ---Pal, though I've not looked at code to know (and been so long I forget), if a vehicle entitiy is spawned the same way as a npc entity, perhaps his function would be a good chance to learn on your own.
:)
Best way I ever learned was by looking at others code when I wanted to do something similar.

--- End quote ---

I tried and crashed and burned.  That's why i made the reply.

In fact, a few years ago i even took a dedicated C++ programming program at college and 3 weeks into it i had a burn out because i couldnt keep up/understand things.

@Pres, can you make it work in any gamemode like the rest of ULX?  The vehicle script doesnt work in TTT and every other gamemode (i can still spawn ents with the rcon command though).

Navigation

[0] Message Index

[*] Previous page

Go to full version