0 Members and 1 Guest are viewing this topic.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
SetWeaponActive is fine too.
Quote from: croat1gamer on January 10, 2010, 05:23:02 pmSetWeaponActive is fine too.Just note that this may not guarantee the user seeing the weapons menu correctly (acting as if SetWeaponActive didn't work).
When i need to use SetWeaponActive() I just do it 15+ times with a loop to make sure it sticks
QuoteWhen i need to use SetWeaponActive() I just do it 15+ times with a loop to make sure it sticksUsing it 15 times in a row doesn't change anything and it's just stupid.
DorkeyDear is thinking right.No need to do it 15 times, especially in a row. I'll better do it 3 times with 1-2 seconds pauses.And, DorkeyDead, what about picking up weapons?
if the player somehow gets the wrong weapon, ForceWeapon it out of his hand (assuming he cannot hold it; if he can, then don't do that )
This packet can and does get lost on route. Sending it 15 times is an infinitesimal load to the scriptcore. I have tried it with less than 10 and it frequently fails, but with 15 there is very little chance to failier.