Jump to content

Spawning in manable and AI turrets


AlienXAXS

Recommended Posts

Hey RenX Devs & Coders alike.

Just wondering what the possibility is of spawning in the turrets that are on the walls on the map whiteout, I have little experience in Mutator coding but i have some ideas which could be interesting.

If possible, where can I find their object names?

Also, as for the AI Turrets, is it possible to spawn in the little guard towers which are AI Controlled?

I do not wish to have someone write the whole thing for me, i wish to learn, so a starting point would be grand.

Link to comment
Share on other sites

Turret classes are all classes that extend from Rx_Defence or Rx_Defence_Emplacement (Emplacements are the mannable ones on Whiteout).

If you want players to spawn in them i would try using the ModifyPlayer() function that gets called in Mutators when a player respawned by GameInfo.RestartPlayer(). Then i would look into how DriverEnter() works in Rx_Vehicle. The Turrets basically are vehicles aswell (just stationary ones).

"Also, as for the AI Turrets, is it possible to spawn in the little guard towers which are AI Controlled?"

So yes, that would be possible. You would need to kick the AI out first and destroy it (DriverLeave()), then you could enter players as described above (calling DriverEnter() with your pawn on the turrets from within ModifyPlayer()).

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...