"Is A Player Ship" Command?

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

MasterUltima
Posts: 144
Joined: Wed, 4. Feb 04, 14:45
x3

"Is A Player Ship" Command?

Post by MasterUltima »

Hi guys!

I need help for a script Im currently working on... I need to know if an object is a ship owned by a player! I dont mean the one that the player is using, instead I mean every kind of ship including the one hes currently flying, all his transporters and all his battle ships.

Is there any way to find that out?

Thanks in advance!
Firedancer
Posts: 632
Joined: Wed, 13. Aug 03, 15:45
x3

easy.....

Post by Firedancer »

easy, check for the race......

there's an object command I think to determine an objects race... if it belongs to race==julian, then it's player owned.
User avatar
_nox_
Posts: 245
Joined: Tue, 3. Feb 04, 09:52
x4

Post by _nox_ »

uh no I think it's Player, not julian.

it's julian in the pick list if you haven't changed your name, but it's player in the script

oh, and 'player' is a constant, not a string. get it by choosing 'Var/Race' not by entering a string.
No good deed goes unpunished.

Return to “X²: The Threat - Scripts and Modding”