
rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Nov 1, 2010 07:31 AM
Msg. 1 of 9
I just need to know two things.
1). What the command is for setting an Object Definition in a script?
2). If I remove a weapon through the object_destroy command, will that remove it from a player's inventory? If not, is there a command that will?
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Nov 1, 2010 08:45 AM
Msg. 2 of 9
1) I don't get what you mean by this. 2) No, because once the player picks up that weapon, it no longer retains its name. I would do something regarding player starting profiles, if you are going for a specific weapon set that the player must have at that given time (Think Solitude Firefight).
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Nov 1, 2010 08:59 AM
Msg. 3 of 9
Removing the weapon would have been nice for this script, but it is not necessary. However I do need to know how to set an object definition. If any one knows how to do this, I need to know ASAP.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Nov 1, 2010 09:09 AM
Msg. 4 of 9
wtf do you mean by object definition? Do you mean the name that an object has? Cuz that's done in sapien...
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Nov 1, 2010 09:13 AM
Msg. 5 of 9
An object definition is used in scripting for finding specific tags like make the word "ar" reference to weapons\assault rifle\assault rifle.weapon. I know what I need, just don't know how to set one up via script.
I need an object definition for a script that checks what weapon you're carrying and react accordingly once activated. Edited by rerout343 on Nov 1, 2010 at 09:15 AM
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Nov 1, 2010 09:27 AM
Msg. 6 of 9
I don't know how to give the weapon the object definition, but here's the script that check to see of the player switched to it:
(unit_has_weapon_readied (unit (list_get (players) 0)) "ar")
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Nov 1, 2010 09:35 AM
Msg. 7 of 9
Actually The script is done except for the definition. I already have the rest saved.
|
|
|

d4rfnader
Joined: Jul 16, 2010
Open mouth, insert sandwhich.
|
Posted: Nov 1, 2010 03:43 PM
Msg. 8 of 9
i think its just:
(global object_definition ar "weapons\assault rifle\assault rifle")
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Nov 2, 2010 01:19 AM
Msg. 9 of 9
Thanks that worked.
|
|
|